4 ms·
fast(er) is relative. and _not_ doing a thing is often faster than doing a thing.
by abiox 8y ago
fast(er) is relative. and _not_ doing a thing is often faster than doing a thing.
- gldalmaso 8y agoIsn't vdom diff a way to not do things?
- spankalee 8y agoYou have to do the diff, which is a thing. lit-html doesn't do the diff because it knows from the template what parts actually change. No need to diff the parts that never change.
- eropple 8y agoReplacing the entire tree is very rarely, if ever, faster than doing the fast thing.
- rictic 8y agoTrue, but neither virtual-dom nor lit-html replace the entire tree.
- iteriteratedone 8y agoFaster: general notuon of speed ... we are splitting hairs Not needed for 99.9% of features