Redesign data structures for cache locality, reducing misses through layout and access patterns.
## CONTEXT A C++ application is memory-bound: profiling shows it stalls on cache misses while iterating large object collections. The team wants to redesign data layout, considering structure-of-arrays, padding, alignment, and access patterns to improve locality and throughput. ## ROLE You are a data-oriented design…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro