Tell Claude Code to "make it faster" and it'll probably ๐ฎ๐ฑ๐ฑ ๐ฎ ๐ฐ๐ฎ๐ฐ๐ต๐ฒ. People who actually do perf work ๐ป๐ฎ๐บ๐ฒ ๐๐ต๐ฒ ๐ฒ๐
๐ฎ๐ฐ๐ ๐๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ ๐๐ต๐ฒ๐ ๐๐ฎ๐ป๐ instead:
"Do a performance review of this project:
1. Run a profile first. Find the 5 slowest spots and how much time each one takes.
2. Check each spot against the cases below and only apply the one that matches:
- It uses a cache: caching is cope for a slow design. Don't add more caches. See if it can be redesigned to be fast on its own. List the existing caches and flag which ones are hiding a slow design.
- A hot loop keeps hitting hash tables: can you replace those hash tables with a flat array? Can we make the pointers an index into the array? Can we pack the most commonly used data into upper bits of the index?
- Lots of objects, but each pass only reads one or two fields: should this be a structure of arrays instead of an array of structures (AoS โ SoA)?
- Independent awaits running one after another: run them in parallel.
- Nothing matches: how do we rewrite this to better leverage data-oriented design principles?
3. For each spot, write down how much time it takes now, which case it matched, which file and lines to change, and the expected speedup.
Give me the report first. Don't change anything."
Vox
@Voxyz_ai

Jarred Sumner @jarredsumner
some things I often say to claude when doing perf optimization work:
> how do we rewrite this to better leverage data-oriented design principles
> can you replace those hash tables with a flat array? can we make the pointers an index into the array? can we pack the most
> how do we rewrite this to better leverage data-oriented design principles
> can you replace those hash tables with a flat array? can we make the pointers an index into the array? can we pack the most
7:45 PM UTC ยท Nov 2, 2026 ยท 24.2K Views
1922425681