dominant
dominant copied to clipboard
Replace MutationObserver tree walker with (WeakRef) boundNodes/document.contains scan
Store boundNodes as weak refs from d.el. This could dramatically improve performance as MutationObserver tree walks are probably slower than going straight for the boundNodes as document.contains seems much cheaper than I thought.
OTOH this could decrease performance of apps with lots of hidden but not garbage collectible bound nodes.