The HTML Event Loop takes care of coordinating events across the browser.
Some operations need to be performed in parallel.
This creates compilication, because our DOM is not threadsafe (does not implement Sync). Making it threadsafe would require using Arc/Mutex instead of Rc/RefCell.
If we're already overhauling the dom memory management this might also be a good time to introduce a gc.
For now, its not really clear how parallel operations can be implemented efficently.
The HTML Event Loop takes care of coordinating events across the browser. Some operations need to be performed in parallel. This creates compilication, because our DOM is not threadsafe (does not implement
Sync
). Making it threadsafe would require usingArc
/Mutex
instead ofRc
/RefCell
.If we're already overhauling the dom memory management this might also be a good time to introduce a gc.
For now, its not really clear how parallel operations can be implemented efficently.
References