Perhaps. Then again, if your target is to reduce dram refresh induced latency, you might not have time to prefetch either.
This might be useful in a case where a small lookup or similar is often pushed out from cache such that lookups are usually cold. Yet lookup data might by small enough to not cause issue with cache pollution, increased…
CPU frequency scaling can also lead to somewhat unintuitive results. On few occasions I've seen CPU load % increasing significantly after code was optimized. Optimization was still actually valid, and the actual…
if you run it with luajit -jv primes.lua you'll see NYIs about math.mod not implemented. Replacing math.mod(n, i) with (n % i) gives roughly 9.4x performance. EDIT: luajit version was LuaJIT 2.0.4 on Mac OSX
Perhaps. Then again, if your target is to reduce dram refresh induced latency, you might not have time to prefetch either.
This might be useful in a case where a small lookup or similar is often pushed out from cache such that lookups are usually cold. Yet lookup data might by small enough to not cause issue with cache pollution, increased…
CPU frequency scaling can also lead to somewhat unintuitive results. On few occasions I've seen CPU load % increasing significantly after code was optimized. Optimization was still actually valid, and the actual…
if you run it with luajit -jv primes.lua you'll see NYIs about math.mod not implemented. Replacing math.mod(n, i) with (n % i) gives roughly 9.4x performance. EDIT: luajit version was LuaJIT 2.0.4 on Mac OSX