-
Notifications
You must be signed in to change notification settings - Fork 60
Modernize and minor performance improvements #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v5
Are you sure you want to change the base?
Modernize and minor performance improvements #200
Conversation
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We implement the storage to force the benchmark to cover more code, going into slower code paths.
This commit is just the result of calling: "golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize -fix"
4c74fe1
to
4912388
Compare
This is not stale 🙄 |
@costela Sorry for the delay, but we have had a lot going on as well as going on a company offsite last week that we do once a year. I haven't had time to sit down and contemplate the changes here in detail. My main concern is whether or not we need to do a major release with the interface changes. I hope I can take a better look at this next week. |
Could you lessen my workload a bit by highlighting the key implications of these changes? |
@FredrikOseberg Sure!
|
About the changes
This PR does a couple of smaller things:
every
genericThe changes above bring a measurable performance improvement:
Additionally, we also do a couple of minor internal cleanups:
Important files
The biggest impact is caused by the change in
utils.go
, in theevery
function.Followed by the slice initialization in
client.go
.In general, since the PR has multiple parts, it may be easier to check each commit individually.
Discussion points
Since there's a lot going on in the PR, one could argue for splitting it into smaller ones.