Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/result/processors: compile nolint regexp only once
`regexp.MatchString` compiles regexp for every invocation, there is no pattern caching there. This change introduces a precompiled regexp to save some time while checking comments for nolint directives. Found using go-perfguard with cpu profile collected while running golangci-lint on itself.
- Loading branch information