3 ms·
While that's true, I wonder how many websites really benefit from smart diffing algorithms instead of just directly updating the dom.
by ssdspoimdsjvv 3y ago
While that's true, I wonder how many websites really benefit from smart diffing algorithms instead of just directly updating the dom.
- mathgladiator 3y agoIn my world, I just directly update the DOM which I described recently in https://news.ycombinator.com/item?id=36067280 https://news.ycombinator.com/item?id=36067280
- 5Qn8mNbc2FNCiVV 3y agoThe diffing algorithm for preact is super simple, I think it's along the lines of a dozen lines of code. I'd wager the code to directly updating the DOM will be larger than preact + usage code