Code Monkey home page Code Monkey logo

Comments (3)

OpenGG avatar OpenGG commented on May 27, 2024 1

The original svg takes forever to render with wasm. Not even possible to get a valid timeline profiling report.

I had to make smaller width/height:

viewBox="0 0 744 1052" height="100" width="142"

Timeline shows major cost in resvg::render::render_node and resvg::render::render_group.

timeline

timeline.tar.gz

from svg2png-wasm.

ssssota avatar ssssota commented on May 27, 2024

@yisibl
I tried changing the build option.
There was indeed a slight speedup, but the conversion of Anime_Girl.svg is still significantly slower than resvg-js.

I will publish #44 , but I'm going to keep this issue open and proceed with the research.

from svg2png-wasm.

yisibl avatar yisibl commented on May 27, 2024

Yes, it's actually unfair to compare wasm with a library that generates binaries like resvg-js, wasm itself will have some overhead.

As a wasm library, we can just make a compromise between performance and file size.

from svg2png-wasm.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.