From: jaspervdg Date: Wed, 8 Apr 2009 11:50:31 +0000 (+0000) Subject: Swap iterations over x and y coordinate to be more cache friendly (so the inner loop... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d3fe83c908e8e3e6dc2040f10a3f4a1d2b97cd87;p=inkscape.git Swap iterations over x and y coordinate to be more cache friendly (so the inner loop iterates over x). --- diff --git a/src/display/nr-filter-displacement-map.cpp b/src/display/nr-filter-displacement-map.cpp index 4cd0f5160..869a184ac 100644 --- a/src/display/nr-filter-displacement-map.cpp +++ b/src/display/nr-filter-displacement-map.cpp @@ -124,8 +124,8 @@ static void performDisplacement(NRPixBlock const* texture, NRPixBlock const* map if (!Xneedsdemul) scalex /= 255.0; if (!Yneedsdemul) scaley /= 255.0; - for (int xout=out->area.x0; xout < out->area.x1; xout++){ - for (int yout=out->area.y0; yout < out->area.y1; yout++){ + for (int yout=out->area.y0; yout < out->area.y1; yout++){ + for (int xout=out->area.x0; xout < out->area.x1; xout++){ int xmap = xout; int ymap = yout;