I'm a lib author, and it's what I want. <template> improvements would make a fast and small lit-html even faster and smaller.
-
-
Replying to @justinfagnani @tbranyen and
And I don't think it ignores anything. One of the critical jobs of any template system is creating DOM trees and addressing parts of them.
2 replies 0 retweets 4 likes -
Replying to @justinfagnani @tbranyen and
Right now that typically involves creating a large number of JS wrappers + DOM traversal...
2 replies 0 retweets 2 likes -
Replying to @justinfagnani @tbranyen and
...the template extension proposal offers a way to do do that much more efficiently, with less code.
1 reply 0 retweets 3 likes -
Replying to @justinfagnani @tbranyen and
that can be used as infrastructure for any number of different layers above it.
1 reply 0 retweets 3 likes -
Replying to @justinfagnani @tbranyen and
Also, can we just talk about vdom overhead for a minute? I'm grateful the marketing dreck about it being "faster" quietly exited stage left
4 replies 4 retweets 15 likes -
Replying to @slightlylate @justinfagnani and
But we need to all admit that doubling up your data structures & doing work O(num-elements) when changes are smaller is *not fast*
8 replies 8 retweets 33 likes -
Replying to @slightlylate @justinfagnani and
In theory, the `O(
#element)` cost can be significantly reduced using `shouldComponentUpdate` to prune the tree. Not used enough in the wild?1 reply 0 retweets 1 like -
Replying to @robknight_ @justinfagnani and
"VDOM! Now I don't need to manage state updated in my component!*" * please shouldComponentUpdate() responsibly; mobile perf not advertised
2 replies 1 retweet 12 likes -
Replying to @slightlylate @robknight_ and
(objects in devtools may appear cheaper than they are. All warranties apply to desktop-class computers. Caveat emptor.)
1 reply 0 retweets 6 likes
sCU also gets harder as your program gets bigger.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.