How many times? was: Compression design

Boudewijn Rempt boud at valdyas.org
Tue Nov 28 10:30:49 CET 2006


On Tuesday 28 November 2006 10:18, Bart Coppens wrote:
> On Tuesday 28 November 2006 10:00, Boudewijn Rempt wrote:
> > 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.
>
> Ah, then that might be the much more harmless case of iterating over each
> tile individually with a new iterator. That surely could use some
> optimizing then, though, but it's not as serious.

Eh... Not sure I'm following you. Yes, it's a new iterator every time, but 
it's the same unchanged tile that's being read time and again.
-- 
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/ed11f46f/attachment.pgp 


More information about the kimageshop mailing list