4 ms·
The virtual DOM is slow. Meet the memoized DOM
- js4ever 8y agoBenchmark seems impressive I will give it a try!
- somebee 8y agoPlease do! As I mention in the article, it's probably going to be a bumpy (but exciting) ride. We need to improve the documentation. The performance benefits are the real deal though :)
- beaconstudios 8y agoI would think the fastest option would be to have components generate their own HTML DOM representation (and append their child components into that tree), and memoize the components against their source data. I suppose the hardest part would be converting the source data into a cache key in a performant way.
- scotty79 8y ago> During compilation we split creation and updates into separate branches. That's what you do when you use d3. I'm amazed that nobody turned d3 into general purpose webapp rendering framework.
- tahmid_arektu 8y agoI find that very interesting. Could you please elaborate?
- heldrida 8y agoI'm typing on my phone but if this works well, its the most promising web development platform since previous X (is that React?!). You're a genius! Any examples of how you organise your code, testing etc?
- dsego 8y agoHow does it compare to Svelte?