diff --git a/README.md b/README.md index 6a6628ae..da5e5129 100644 --- a/README.md +++ b/README.md @@ -345,7 +345,7 @@ Read [this section](#internals) for details. ### Memory Usage of Golangci-lint -A trade-off between memory usage and execution time can be controlled by [`GOCC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable. +A trade-off between memory usage and execution time can be controlled by [`GOGC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable. Less `GOGC` values trigger garbage collection more frequently and golangci-lint consumes less memory and more CPU. Below is the trade-off table for running on this repo: |`GOGC`|Peak Memory, GB|Executon Time, s| diff --git a/README.tmpl.md b/README.tmpl.md index c70640cb..bae6b95d 100644 --- a/README.tmpl.md +++ b/README.tmpl.md @@ -313,7 +313,7 @@ Read [this section](#internals) for details. ### Memory Usage of Golangci-lint -A trade-off between memory usage and execution time can be controlled by [`GOCC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable. +A trade-off between memory usage and execution time can be controlled by [`GOGC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable. Less `GOGC` values trigger garbage collection more frequently and golangci-lint consumes less memory and more CPU. Below is the trade-off table for running on this repo: |`GOGC`|Peak Memory, GB|Executon Time, s|