Mercurial
diff mrjunejune/src/blog/optimizing-data-structures/index.md @ 173:827c6ac504cd hg-web
Merged in default here.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 19 Jan 2026 18:59:10 -0800 |
| parents | 295ac2e5ec00 |
| children |
line wrap: on
line diff
--- a/mrjunejune/src/blog/optimizing-data-structures/index.md Sat Jan 10 13:35:09 2026 -0800 +++ b/mrjunejune/src/blog/optimizing-data-structures/index.md Mon Jan 19 18:59:10 2026 -0800 @@ -1,3 +1,8 @@ +--- +title: Optimizing Data Structures for Performance +description: Understanding how memory layout affects cache performance in C++ games, with examples of pointer indirection and contiguous data structures. +--- + ### Optimizing Data Structures for Performance In my professional experience as a full-stack engineer, I primarily work with languages like Python, JavaScript, and Ruby, which don’t provide strict control over memory management. Contract work requiring languages like C or C++ is rare, as most clients prefer "modern" languages that prioritize ease of use over low-level control. Even on the few occasions when I did write C or C++ code, my focus was not on performance optimization. However, I recently observed some C++ code that changed my perspective.