CPU cycles per SVGImage

960 views
Skip to first unread message

Kouhei Ueno

unread,
Apr 23, 2024, 5:51:23 AM4/23/24
to Fredrik Söderquist, Chromium Loading Performance, Philip Rogers, Minoru Chikamune
Hi fs,

Thank you for reviewing and so sorry for confusing you on the CL.

chikamune@ opened up the docs linked on the CL - 

Let us explain the context (although you seemed to have correctly guessed it already) - yes SVGImage creation is appearing as a bottleneck on some latency sensitive websites, and we wish to optimize it.
Especially when loading small images - typically seen embedded as a data url, it seems that we are spending too much time initializing the environment for it (page / localframe / parser / etc.) compared to the actual time spent.

> Keeping the `ChromeClient` separate would go a long way from my PoV.
I don't fully follow here but am very curious. Would you elaborate?

> Latency-hiding by pooling may have benefits, but I'd be a bit wary about it when it comes to objects of this complexity (and IIRC they are not trivially small either - probably larger now then when we measured their size some [long, probably] time ago).

I don't disagree. I'm not fully convinced myself if latency hiding by this would make sense, however we were interested in taking the actual performance data / surfacing any breakages on tests.

Thanks,

kouhei
Reply all
Reply to author
Forward
0 new messages