rea-analysis-optimization
MOmorluto/rea485k7,690 new stars in the last 7 days
Use when a Go program is slow, allocation-heavy, or suspected of leaking — pprof CPU, heap, block, mutex and goroutine profiles, benchmark comparison with -benchmem, escape analysis via -gcflags=-m, and cutting allocation counts. Not for correctness bugs; use the go skill.
For correctness bugs, wrong output, or a failing test use go. For CLI flag and command design use cobra-viper. For cutting a release or versioning the module use go-release. Name the skills this one defers to — a skill with no negative trigger claims prompts its siblings own.
go test -bench . -benchmem for the unit of work; go tool pprof -http=:8080 over -cpuprofile / -memprofile output. A change with no before-and-after number is a guess.-sample_index=alloc_objects counts allocations, alloc_space counts bytes; the default inuse_space answers a different question than the one usually asked.net/http/pprof on a private listener, never the public mux — the endpoints have no authentication, and a CPU profile is 30 seconds of SIGPROF.go build -gcflags=-m against the one package that changed. The analysis is per-package, and the compiler's moved to heap is the only answer that matters.benchstat, not by eyeballing -bench output. One run cannot tell a real 3% win from noise.sync.Pool first. It trades an allocation for contention and retention, and loses on a low-churn path.-benchmem. Allocations are invisible without it, and they are usually the answer.net/http/pprof mounted on the public mux "temporarily".MOmorluto/rea485k7,690 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
Diagnose hard bugs and performance regressions by building a feedback loop with tests or scripts.
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days