|
|
|
|
|
by developit
3485 days ago
|
|
The theory is that if the diff were sufficiently expensive on its own (it's generally not), that cost is offloaded. There may be gains to be made by moving most of the application code out of the UI thread (less memory usage in that thread, etc). In this demo, all the UI thread is doing is receiving batches of small instructions to update the DOM. Stuff like "change the text content of element #12" (all elements get assigned an ID). That said, this is just an experiment. I wanted to get a real sense of whether threading was something we should care about for DOM manipulation. |
|