Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ssdspoimdsjvv
· 3y ago · 0 comments
While that's true, I wonder how many websites really benefit from smart diffing algorithms instead of just directly updating the dom.
Comments
[–]
5Qn8mNbc2FNCiVV
3y ago
The 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
[–]
mathgladiator
3y ago
In my world, I just directly update the DOM which I described recently in
https://news.ycombinator.com/item?id=36067280