How many times? was: Compression design

Bart Coppens kde at bartcoppens.be
Tue Nov 28 14:49:03 CET 2006


On Tuesday 28 November 2006 10:30, Boudewijn Rempt wrote:
> > 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.
Actually.... it shouldn't happen indeed, given that it's a Rect Iterator:
    KisRectIteratorPixel srcIt = dev->createRectIterator(m_x, m_y, m_w, m_h, 
false);
...
        i = srcIt.nConseqPixels();
so it should go over each tile only once, hmmmmm, that's wrong then :-/

Bart


More information about the kimageshop mailing list