HNHacker News
TopNewBestAskShowJobs

deegu

2 karma · joined July 4, 2015

submissionscomments
deegu··on DRAM has a design flaw from 1966. I bypassed it [video]
Perhaps. Then again, if your target is to reduce dram refresh induced latency, you might not have time to prefetch either.
deegu··on DRAM has a design flaw from 1966. I bypassed it [video]
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 bandwidth or memory consumption.
deegu··on CPU Utilization is Wrong
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 executed instructions per work item went down, but the CPU load % went up since OS decided to clock down the CPU due to reduced workload.
deegu··on Yet Another Language Speed Test – Counting Primes
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