go/performance

Free catalog · v0.0.9

Reviews Go for resource amplification, defer-in-loop, per-request clients, hot-path regexp compilation, and quadratic string building.

Checks

RuleSeverityScans for
go-perf.cache-element-footprint-claimMediumA changed cache element gains a descriptor-bearing string, slice, or map field while the same changed file claims the default cache stays slim, compact, or unchanged
go-perf.defer-in-loopHighdefer inside a loop — deferred calls pile up until the function returns, not the iteration
go-perf.http-client-per-requestHighNew http.Client/http.Transport constructed per request or per loop iteration
go-perf.large-value-copyMediumLarge structs (≥ ~128 bytes) copied per iteration via range value or passed by value in hot signatures
go-perf.regexp-compile-in-hot-pathHighregexp.MustCompile / regexp.Compile inside a loop or request handler
go-perf.request-keyed-cache-amplificationMediumA cookie, header, query, or path value (or a direct deterministic derivation) keys a package- or receiver-owned cache whose miss path performs remote, file, or database work before inserting a new entry
go-perf.string-concat-loopMediumString built with += inside a loop over unbounded data

More from the registry