Review Request 119425: Cache the textures created for the fast path
David Edmundson
david at davidedmundson.co.uk
Fri Jul 25 10:18:45 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119425/#review63124
-----------------------------------------------------------
Ship it!
src/declarativeimports/core/framesvgitem.cpp
<https://git.reviewboard.kde.org/r/119425/#comment43878>
This comment is now wrong.
So sorry!
Also (pedantry) it's not a hash; it's a static counter inside the QImage constructor/detatch so it's super fast.
- David Edmundson
On July 25, 2014, 10:14 a.m., Aleix Pol Gonzalez wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119425/
> -----------------------------------------------------------
>
> (Updated July 25, 2014, 10:14 a.m.)
>
>
> Review request for Plasma.
>
>
> Repository: plasma-framework
>
>
> Description
> -------
>
> Create a cache that has pointers to all the textures that we've generated, so in case we have one already created, we can re-use it.
>
>
> Diffs
> -----
>
> src/declarativeimports/core/framesvgitem.cpp 323b06b
> src/declarativeimports/core/iconitem.cpp 38012cc
> src/declarativeimports/core/svgitem.cpp eccff55
> src/declarativeimports/core/svgtexturenode.h 21b9b2f
> src/desktoptheme/air/widgets/lineedit.svgz 8b3a123
>
> Diff: https://git.reviewboard.kde.org/r/119425/diff/
>
>
> Testing
> -------
>
> see the qDebug (to be removed before commit).
>
> plasmashell 2> out
> $ grep s_cache out | grep ": miss" | wc -l
> 342
> $ grep s_cache out | grep ": hit" | wc -l
> 126
>
> So still having 3 times more hits than miss, so there's big room for improvement. Good news is that with this, we get a ~25% of memory and bandwidth save, in a per-item basis.
>
>
> Thanks,
>
> Aleix Pol Gonzalez
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140725/a0e48ef7/attachment-0001.html>
More information about the Plasma-devel
mailing list