Open liesauer opened 2 months ago
making
for (x, y) in dimensions {
pixels[x][y] = pixels[x][y] + 1;
}
for (x, y) in dimensions {
pixels[x][y] = pixels[x][y] * 2;
}
into
for (x, y) in dimensions {
pixels[x][y] = (pixels[x][y] + 1) * 2;
}
same result but fewer loops
let's says i want to doing this:
when it runs, the actual code is something like this
with batch optimization, it can be
it will save tons of loops, is there any feature plans doing this?
i am not english native speaker neither nor a professor on image processing, hope the description clear enough.