let me ask you this — is dom diffing the bottleneck?
-
-
yeah, it could be - not usually but it's the extreme cases that would act violently; capping them without API change would be neat
2 replies 0 retweets 0 likes -
Replying to @yoshuawuyts
in the super hot path i always go with vanilla JS and target the exact nodes i intend to update, but diffing/patching... 1/2
1 reply 1 retweet 1 like -
Replying to @heapwolf @yoshuawuyts
is in comparison, inherently inefficient (any way you look at it, its an abstraction), so why dom-diff when perf maters? 2/2
1 reply 0 retweets 1 like -
I respectfully disagree here - I think the logic to handle the custom updates may sometimes be heavier than a single diff per frame
2 replies 0 retweets 0 likes -
Replying to @yoshuawuyts
you mean the complexity of the update may be so substantial that it justifies the abstraction?
1 reply 0 retweets 0 likes -
in some cases: definitely - but this def depends a lot on who wrote the code for the update; feel like vdom may be more consistent
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
if updates are so complex it becomes a cognitive strain to apply - it's probably spaghetti 1/2
1 reply 0 retweets 0 likes -
Replying to @heapwolf @yoshuawuyts
...but helping people avoid code spaghetti also has its own merit ;) 2/2
1 reply 0 retweets 1 like -
Replying to @heapwolf @yoshuawuyts
developers are their own worst enemies.
1 reply 0 retweets 1 like
oh god, yes - esp when doing anything that's async, recursive and/or concurrent; larger evil arises when combining the three ;_;
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.