How many times? was: Compression design

Bart Coppens kde at bartcoppens.be
Tue Nov 28 10:18:11 CET 2006


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.

Bart


More information about the kimageshop mailing list