How many times? was: Compression design

Boudewijn Rempt boud at valdyas.org
Tue Nov 28 10:00:34 CET 2006


On Tuesday 28 November 2006 09:50, Bart Coppens wrote:
> On Tuesday 28 November 2006 08:54, Boudewijn Rempt wrote:
> > 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.
>
> Twenty times over the same single area, with nothing having changed in
> between? Then yes, that's most certainly a bug. Do you have more info on
> this?

I discovered this by putting a kDebug() << "Tile: " << this << ", " << 
kBacktrace() << endl; in KisTile::addReader(). When I create an image of 
10x10 pixels I don't get all that many tiles, so I was able to actually look 
at what happened, and I found that both the histogram and the layerbox were 
calling this method many, many times on the same tile.

-- 
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/d86eed1d/attachment.pgp 


More information about the kimageshop mailing list