How many times? was: Compression design

Boudewijn Rempt boud at valdyas.org
Tue Nov 28 08:54:03 CET 2006


On Monday 27 November 2006 22:59, Bart Coppens wrote:
> On Monday 27 November 2006 20:41, Boudewijn Rempt wrote:
> > I'm already considering another approach, piggy-backing off the list of
> > swappable tiles, but there's this: on creating an image, the histogram
> > widget indecently often iterates over the paint device:
>
> Yes, I admit to that indecency. But by doing that, I could postpone doing
> the histogram until after the user has finished painting (or a filter has
> done its job), so as to not bother the user while with decreased
> performance while painting. Especially when a filter needs to do stuff to
> the entire paintdevice in more than one pass, it's better to do the
> histogram at the end.

Well, this is on image creation, and the histogram code iterates twenty times 
over the same single area. It must be possible to optimize that somehow.

> Now I could've done more evil tricks like do triggers on swapout, or store
> the stuff alongside a tile, but I think that'd expose the tiles too much.
> Of course, I'm open to suggestions here.

I should investigate some more I think.
-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- 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/kimageshop/attachments/20061128/43e5f15d/attachment.pgp 


More information about the kimageshop mailing list