What problem does it solve?
This Skill helps you find and fix Go performance bottlenecks without guessing, so you can improve latency, throughput, memory use, and CPU efficiency in a disciplined way.
Core Features & Use Cases
- Profile-first optimization: Choose the right diagnostic tool before changing code, including pprof, fgprof, tracing, and benchmark-driven analysis.
- Iterative benchmarking workflow: Measure a baseline, apply one optimization at a time, and verify gains with statistical comparison.
- Hot-path improvements: Apply proven patterns for allocations, slice reuse, map access, error handling, interface boxing, inlining, cache locality, GC tuning, and I/O behavior.
- Use Case: A Go API is slow under load, and you need to determine whether the real issue is database wait time, excess allocations, a bad data layout, or an inefficient loop.
Quick Start
Use the golang-performance skill to profile this Go codebase, identify the most likely bottleneck, and recommend one benchmarked optimization to test next.