It looks like it has something to do with bounds checking, since if I put @inbounds in loop! then its performance becomes better than both previous versions.
1 Like
It looks like it has something to do with bounds checking, since if I put @inbounds in loop! then its performance becomes better than both previous versions.