Perf Optimization

Systematic performance optimization methodology: profile first, fix only the #1 bottleneck, re-profile, repeat. Use when optimizing any program's performance — before writing SIMD, parallelism, caching, or algorithmic rewrites. Also use when someone says 'make it faster', 'this is slow', 'optimize this', 'too slow', 'performance bottleneck', or wants to reduce latency/prove time/build time. Prevents the common trap of guessing bottlenecks (which wastes 10x more code for less speedup). Covers perf record/annotate workflow, A/B testing discipline, contaminated profile diagnosis, and when to stop. NOT for memory leaks (use valgrind/heaptrack) or known algorithmic complexity fixes (O(N^2) → O(N log N)).

sipengxie2024 de5856d 28 files · 757.2 KB Updated

File contents

sipengxie2024/superpower-planning/tree/main/skills/perf-optimization commit de5856d1fd

Frequently asked questions

npx skillmds@latest add sipengxie2024/perf-optimization