What problem does it solve?
This Skill helps you optimize Go performance without guessing, by turning slow code into measurable improvements with benchmarks, profiles, and evidence-based fixes.
Core Features & Use Cases
- Measure-first optimization: Establish a baseline with benchmarks, then validate each change with repeated runs and benchstat.
- Profile-driven diagnosis: Use pprof, fgprof, and escape analysis to identify whether the real bottleneck is allocations, CPU, GC pressure, locks, or external I/O.
- High-ROI Go fixes: Apply proven patterns like preallocating slices and maps, using strconv instead of fmt for primitives, reducing boxing, tuning http.Client, and avoiding repeated string or byte conversions.
- Production guardrails: Keep optimizations safe with verification checklists, comments explaining tradeoffs, and runtime tuning such as GOMEMLIMIT for containerized services.
Quick Start
Ask for a Go performance review of the slowest function, including benchmark design, profiling guidance, and the most likely allocation or hot-path optimizations.