[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: QRegion
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2007-06-04 19:47:58
Message-ID: 200706042147.58327.boud () valdyas ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 04 June 2007, Cyrille Berger wrote:
> On Monday 04 June 2007, Boudewijn Rempt wrote:
> > If I profile, btw, I get lots and lots and lots of hits for exactBounds()
> > -- we really need to figure out how to stop running four iterators to
> > find the exact bounds of a paintdevice.
>
> Maybe, using the dirty rect (region) as an hint ? I mean for each call to
> setDirty we get an idea of the extend. The problem is if the dirty rect is
> badly set and when pixels are made transparent.

I think, at Bensch suggestion, we once decided to take the result of 
writeBytes() and the non-const iterators to cache the exact bounds of 
KisPaintDevice. I'm not sure which suggestion is the best, or even if either 
are any good. But it's a major opportunity for optimization :-).

I'll give both a try tonight.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi

["signature.asc" (application/pgp-signature)]

_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic