What problem does it solve?
Golang performance skill helps you systematically improve slow or inefficient Go code by identifying the real bottleneck first and applying the most effective optimization pattern for that bottleneck.
Core Features & Use Cases
- Profile-first optimization: Guides you to use CPU profiling and off-CPU diagnostics (e.g., fgprof) before changing code.
- Allocation, CPU, and memory layout improvements: Covers reducing heap allocations, improving hot-path CPU efficiency, and optimizing data layout for cache locality.
- Iterative benchmark-driven validation: Enforces an optimize loop of baseline measurement, one-change improvements, and benchstat comparisons to confirm wins.
- Tuning and production readiness: Includes runtime tuning (GOGC, GOMEMLIMIT), pooling rules, caching patterns, and observability cross-checks to prevent regressions.
Quick Start
Use the golang-performance skill to optimize a slow handler by profiling with pprof, selecting the matching optimization playbook, and then confirming the improvement with an isolated benchmark plus benchstat comparison.