http://elm-lang.org/blog/Blazing-Fast-Html.elm
It's possible that only applies to HTML and not to canvas. If that's the case then I would hope the technique will be applied to canvas soon.
It's possible that only applies to HTML and not to canvas. If that's the case then I would hope the technique will be applied to canvas soon.
That's the hard part. The virtual-dom takes care of this for you, but in the case of canvas, you'd have to determine whether or not anything actually changed, which involves keeping around a previous state and comparing it to the new state. It's certainly doable, but nowhere near as simple as using the virtual-DOM.