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!
|
|
@FredrikOseberg just a friendly ping, to avoid this getting forgotten 😇 I totally get it if there's no time or mental capacity available for such a "bag of stuff" PR I'm just looking forward to the performance gains, since we use unleash in some hot-path contexts. |
@costela I haven't forgotten about this, but I have some deadlines on other feature enhancements in Unleash that have taken up most of my capacity for the past weeks. I will pick this up as soon as I can. |
sighphyre
left a comment
There was a problem hiding this comment.
This looks great, thanks so much for doing this!
About the changes
This PR does a couple of smaller things:
everygenericThe 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 theeveryfunction.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.