Files
ladybird/Libraries/LibWeb/DOM
Andreas Kling 5a3845b330 LibWeb: Cache Document's decoded-SVG status in a bool member
Document::is_decoded_svg() was reached through two pointer hops and a
virtual call into PageClient on every invocation. It showed up at 1.9%
self time in a YouTube playback profile, and it's also called for every
document in the hot documents_in_this_event_loop_matching() loop that
runs on every rendering update.

The page's client is fixed for the lifetime of a document, so we can
cache the answer at construction time and serve future calls from a
plain member load.
2026-04-24 18:58:48 +02:00
..
2026-01-31 11:44:20 +01:00