To be even more explicit: loop over rows in the innermost loop, not cols. 
You should get an improvement of around x6 (at least I do).

On Friday, July 1, 2016 at 7:26:20 PM UTC+2, Kristoffer Carlsson wrote:
>
> To be explicit, you are looping over things in the wrong order. You want t 
> he next loop iteration to access data that is close in memory to the 
> previous iteration. Right now you are making big jumps in memory between 
> each iteration.

Reply via email to