Skip to content

SvgRectsCache: do not query elements twice

Aleix Pol Gonzalez requested to merge work/do-not-query-known-rects into master

I was looking into why there is so much time spent here for the logout greeter that only has buttons. It seems like we were querying the cache file every time even though we already have separate code that checks whether our information is valid.

As I started looking into it, ::loadImageFromCache was %25 of the CPU time. After this patch it's short of 1%.

Merge request reports