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
@@ -208,10 +208,10 @@ Currently, all linters except `unused` can be merged into this meta linter.
208
208
The `unused` isn't merged because it has high memory usage.
209
209
210
210
Linters execution starts in `runAnalyzers`. It's the most complex part of the `golangci-lint`.
211
-
We use custom [go/analysis](https://godoc.org/golang.org/x/tools/go/analysis) runner there. It runs as much as it can in parallel. It lazy-loads as much as it can
211
+
We use custom [go/analysis](https://pkg.go.dev/golang.org/x/tools/go/analysis) runner there. It runs as much as it can in parallel. It lazy-loads as much as it can
212
212
to reduce memory usage. Also, it sets all heavyweight data to `nil` as becomes unneeded to save memory.
213
213
214
-
We don't use existing [multichecker](https://godoc.org/golang.org/x/tools/go/analysis/multichecker) because
214
+
We don't use existing [multichecker](https://pkg.go.dev/golang.org/x/tools/go/analysis/multichecker) because
215
215
it doesn't use caching and doesn't have some important performance optimizations.
216
216
217
217
All found by linters issues are represented with `result.Issue` struct:
Copy file name to clipboardExpand all lines: docs/src/docs/usage/performance.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Performance
4
4
5
5
## Memory Usage
6
6
7
-
A trade-off between memory usage and execution time can be controlled by [`GOGC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable.
7
+
A trade-off between memory usage and execution time can be controlled by [`GOGC`](https://pkg.go.dev/runtime#hdr-Environment_Variables) environment variable.
8
8
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