From kde-kimageshop Tue Nov 28 13:49:03 2006 From: Bart Coppens Date: Tue, 28 Nov 2006 13:49:03 +0000 To: kde-kimageshop Subject: Re: How many times? was: Compression design Message-Id: <200611281449.03318.kde () bartcoppens ! be> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=116472176214183 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 _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop