Wuelle / Stormlicht

The Stormlicht browser engine.
MIT License
12 stars 0 forks source link

Tracking Issue: HTML Event Loop #19

Open Wuelle opened 4 months ago

Wuelle commented 4 months ago

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.

References