Plasma::Svg and performance

Aaron J. Seigo aseigo at kde.org
Thu Oct 16 02:37:01 CEST 2008


On Wednesday 15 October 2008, Marco Martin wrote:
> On Wednesday 15 October 2008, Aaron J. Seigo wrote:
> > On Wednesday 15 October 2008, Marco Martin wrote:
> > > with a kconfigroup? would make sense?
> >
> > it's the easy answer, so i'd say: "let's go for it".
> >
> > we can benchmark it once it is in place and working. changing the cache
> > implementation will be an easy task after we have it there in the first
> > place.
> >
> > i'll commit my changes shortly here then, once i figure out the problem
> > with the applet backgrounds
>
> still very rough and probably wrong in many points posting here because i'm
> too tired right now to think, probably tomorrow will come up with a
> slightly better version :)
>
> Cheers,
> Marco Martin

it's a good start =) some (probably fatigue induced) issues like:

+ ? ? ? ? ? ?if (!found) {
+ ? ? ? ? ? ? ? ?return QRect();
+ ? ? ? ? ? ?} else if (rect.isValid()) {
+ ? ? ? ? ? ? ? ?return rect;
+ ? ? ? ? ? ?}
+

should probably be:

if (found && rect.isValid()) {
     return rect
}

though even then ... it might not be worth checking if isValid() so non-
existent elements would also be covered.

but yeah, you're on the right track ... once this is in i'll do some more 
measurements and see where we get =)

i'm also going to make the Image wallpaper plugin use a (separate) cache as 
well i think so we don't have to re-process the wallpaper images everytime. i 
also think i'm going to try to make the Image wallpaper plugin use fewer 
threads when more than one is loaded....

-- 
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 Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20081015/5b7e2168/attachment.sig 


More information about the Plasma-devel mailing list