News for hackers. Stuff that matters.
Re:How I built a fast JavaScript framework by jbob2000 on Wednesday March 07, 2018 @03:04PM (#16539335)
The reason diffing and virtual doms are used are to prevent unnecessarily repainting the browser window 1000 times a second. If I have 5 updates to make, I want to do those in one paint, instead of 5. So the process is change -> change -> change -> paint.

With this framework's model, the process would be change -> paint -> change -> paint etc. etc. Sure, you get nice FPS (because it's painting a LOT), but that will destroy battery performance on mobile phones and I don't need 60 FPS in my shopping web app.

There are no comments on this comment yet.