You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -341,6 +341,22 @@ On average golangci-lint consumes 26% less memory.
341
341
Golangci-lint directly calls linters (no forking) and reuses 80% of work by parsing program only once.
342
342
Read [this section](#internals) for details.
343
343
344
+
### Memory Usage of Golangci-lint
345
+
346
+
A trade-off between memory usage and execution time can be controlled by [`GOCC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable.
347
+
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:
Copy file name to clipboardExpand all lines: README.tmpl.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -310,6 +310,22 @@ On average golangci-lint consumes 26% less memory.
310
310
Golangci-lint directly calls linters (no forking) and reuses 80% of work by parsing program only once.
311
311
Read [this section](#internals) for details.
312
312
313
+
### Memory Usage of Golangci-lint
314
+
315
+
A trade-off between memory usage and execution time can be controlled by [`GOCC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable.
316
+
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:
0 commit comments