dominant icon indicating copy to clipboard operation
dominant copied to clipboard

Replace MutationObserver tree walker with (WeakRef) boundNodes/document.contains scan

Open guiprav opened this issue 4 years ago • 0 comments

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.

guiprav avatar Feb 08 '21 06:02 guiprav