go/analysis/passes/modernize: disable BLoop analyzer
When b.N is used to benchmark very small workloads,
the suggestion to use b.Loop may result in an increased
overhead that skews benchmark results. Since we cannot
accurately identify such workloads, we unfortunately
should just disable the b.Loop modernizer in the "go
fix" suite.
We leave the modernize enabled in gopls because
it is interactive and programmers will scrutinize
the edits.
Fixes golang/go#74967
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
[internal-branch.go1.26-vendor] go/analysis/passes/modernize: disable BLoop analyzer
When b.N is used to benchmark very small workloads,
the suggestion to use b.Loop may result in an increased
overhead that skews benchmark results. Since we cannot
accurately identify such workloads, we unfortunately
should just disable the b.Loop modernizer in the "go
fix" suite.
We leave the modernize enabled in gopls because
it is interactive and programmers will scrutinize
the edits.
Fixes golang/go#74967
Change-Id: I011a167feb865fee6a61cf611aeecb70b285f255
Reviewed-on: https://go-review.googlesource.com/c/tools/+/731962
Commit-Queue: Alan Donovan <adon...@google.com>
Reviewed-by: Alan Donovan <adon...@google.com>
LUCI-TryBot-Result: Go LUCI <golang...@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adon...@google.com>
(cherry picked from commit 267fc6b81a168aa829f97c9209c2cacb503a56f2)
Reviewed-on: https://go-review.googlesource.com/c/tools/+/732260
Reviewed-by: Nicholas Husin <hu...@google.com>
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |