https://tweedegolf.nl/en/blog/88/data-oriented-design
I wrote a blog post about how we use data-oriented design in the compiler. Also has some useful tips for tooling to do benchmarks and check on allocations
169 % faster, nice :)
69% faster, I believe. Still really cool though.
Nice write up folkert.
Levels 2 and 3 don't make this distinction. These caches make a speed versus size tradeoff: L1 is tiny but loading data stored there is very fast, L3 is significantly bigger but somewhat slower (still faster than main memory though).
Super minor typo, I think you mean L2 in this sentence. Great writeup :grinning:
thanks! I think I did mean L3, just to make the contrast clear. L2 is somewhere in the middle between L1 and L3 (in terms of both size and speed)
Last updated: Jul 05 2025 at 12:14 UTC