1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00
ladybird/Libraries/LibWeb/IntersectionObserver
Andreas Kling f0abf5a43b LibWeb: Avoid allocating DOMRect objects for internal engine use
Instead of bothering the GC heap with a bunch of DOMRect allocations,
we can just pass around CSSPixelRect internally in many cases.

Before this change, we were generating so much DOMRect garbage that
we had to do a garbage collection *every frame* on the Immich demo.
This was due to the large number of intersection observers checked.

We still need to relax way more when idle, but for comparison, before
this change, when doing nothing for 10 seconds on Immich, we'd spend
2.5 seconds updating intersection observers. After this change, we now
spend 600 ms.
2025-03-22 14:33:59 -05:00
..
IntersectionObserver.cpp LibWeb: Avoid allocating DOMRect objects for internal engine use 2025-03-22 14:33:59 -05:00
IntersectionObserver.h LibWeb: Implement more IntersectionObserver attributes 2024-11-23 09:52:32 +01:00
IntersectionObserver.idl LibWeb: Implement more IntersectionObserver attributes 2024-11-23 09:52:32 +01:00
IntersectionObserverEntry.cpp LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
IntersectionObserverEntry.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
IntersectionObserverEntry.idl Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00