<br><br><div class="gmail_quote">On Fri, Jun 11, 2010 at 1:24 PM, Boudewijn Rempt <span dir="ltr"></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Friday 11 June 2010, Dmitry Kazakov wrote:<br>
> Hi, All!<br>
><br>
> Why KisPainter uses KisRandomAccessor for accessing the pixels? Why doesn't<br>
> it use rect iterator? In many cases (at least for layer stack update) there<br>
> will be no shift between data managers, so the tiles will be copied at<br>
> once. So why?<br>
<br>
</div></div>The rect iterator is not possible because tiles are not necessarily aligned.<br></blockquote><div><br>why "not possible"? I always thought that "not aligned" == "less efficient", but it should be surely possible! Don't i understand something?<br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The random accessor at the point where it began to be used in KisPainter had<br>
caching; the hline iterators didn't have that. The hline iterator now does<br>
have caching, but we also have the even faster iterators NG, and one of the<br>
tasks for 2.3 is to replace all iterators with the new generation iterators.<br>
<font color="#888888"><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Dmitry Kazakov<br>