Hacker News new | past | comments | ask | show | jobs | submit login

Of course SVG is slower than Canvas. SVG is fundamentally much more powerful. Canvas is just a pixel buffer. You know what's even faster than Canvas? JPEG.

Of course these tools have different use cases. Handling scaling events and interactivity with Canvas is far, far more laborious.

The great thing about SVG (and to a lesser extent JPEGs) is that you can produce them anywhere, not just in a browser with a JavaScript VM.




> You know what's even faster than Canvas? JPEG

Is that true? Isn't canvas a bitmap whereas JPEG requires decoding?


What's the fastest way to deliver the bitmap to the canvas?


Hardcode the RGB array?


So, BMP?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: