Stream: contributing

Topic: data-oriented design


view this post on Zulip Folkert de Vries (Mar 15 2023 at 18:31):

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

view this post on Zulip Anton (Mar 15 2023 at 18:44):

169 % faster, nice :)

view this post on Zulip Brendan Hansknecht (Mar 15 2023 at 18:53):

69% faster, I believe. Still really cool though.

view this post on Zulip Brendan Hansknecht (Mar 15 2023 at 18:53):

Nice write up folkert.

view this post on Zulip Elias Mulhall (Jun 17 2023 at 13:56):

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:

view this post on Zulip Folkert de Vries (Jun 17 2023 at 14:06):

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