3 ms·
Consider the need to block on e.g. the DOM.
by mnarayan01 9y ago
Consider the need to block on e.g. the DOM.
- iainmerrick 9y agoMultiple threads have to synchronize their DOM reads and writes, sure, but that doesn't mean all access needs to be single-threaded. I guess what I have in mind is roughly like managing DOM and JS state via STM, and speculatively parallelizing the JS. I don't know enough about STM to know how well it works out in practice, and for what kind of workloads. The goal would be to improve JS latency (ability to run small functions quickly) even if it reduces throughput. This is all pretty speculative, I realize, I'm just wondering if there are obstacles beyond all the obvious ones, like having to rewrite the entire JS and DOM implementations. :)