News for hackers. Stuff that matters.
Re:Doubling SVG Frame Rates at Khan Academy by datashovel on Thursday November 27, 2014 @01:35AM (#8666245)
On this particular example from the article:

https://www.khanacademy.org/math/basic-geo/basic-geo-coordin...

I would definitely not recommend using individual <svg> nodes. Instead what I did was wrote some basic wrapper functions to decompose and re-compose the internal attributes of <path>. If you get a chance to read the spec you'll see that you get the option of assigning RELATIVE or ABSOLUTE coordinates, which makes it very easy to do a simple editor like what you've done within a single <svg> node.

Re:Doubling SVG Frame Rates at Khan Academy by spicyj on Thursday November 27, 2014 @01:37AM (#8666251)
That's what we had originally, but you lose out on the ability to take advantage of GPU hardware acceleration (in current browsers, at least; there's no actual technical reason preventing GPU acceleration for SVG drawing that I know of).
Re:Doubling SVG Frame Rates at Khan Academy by datashovel on Thursday November 27, 2014 @01:50AM (#8666283)
I am probably assuming several things about how that would be implemented. I personally decided to abandon the idea of using Raphaeljs because it appeared to assume too many things about how I was going to be interacting with the SVG objects on the canvas.

I found that (for my purposes) working directly with the objects was a huge win in terms of performance.

Re:Doubling SVG Frame Rates at Khan Academy by datashovel on Thursday November 27, 2014 @01:54AM (#8666289)
Haven't looked enough at it, but I've been meaning to dig in to http://snapsvg.io/ to see if it is any better. Apparently done by the same guy behind Raphaeljs