mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 18:08:15 +02:00
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.
359 KiB
359 KiB