[Panel-devel] Plasma::Svg dilema
Aaron J. Seigo
aseigo at kde.org
Thu Oct 18 12:47:47 CEST 2007
On Wednesday 17 October 2007, Richard Moore wrote:
> On 10/16/07, Ivan Čukić <ivan.cukic+kde at gmail.com> wrote:
> > I need to paint the same SVG in all instances of one class, but in
> > different sizes. What is the better approach (both speed and
> > memory-wise), to have a pointer to the same Svg object and do the
> > resizing on every paint, or to have separate Svg objects for each
> > instance?
>
> They need to be multiple instances otherwise you destroy the benefit
> of the caching and force a re-render each time.
that is *only* true if the cache size limit is reached. which will happen
whether or not you have multiple SVG objects. not that it matters much either
way since internally they share the same QSvgRenderer anyways.
reading the code is helpful at times =)
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071018/6dca1e37/attachment.pgp
More information about the Panel-devel
mailing list