[Panel-devel] Plasma::Svg dilema

Richard Moore richmoore44 at gmail.com
Wed Oct 17 22:56:42 CEST 2007


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.

Cheers

Rich.


More information about the Panel-devel mailing list