Perhaps. Then again, if your target is to reduce dram refresh induced latency, you might not have time to prefetch either.
2 karma · joined July 4, 2015
Replacing math.mod(n, i) with (n % i) gives roughly 9.4x performance.
EDIT: luajit version was LuaJIT 2.0.4 on Mac OSX