-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Use more efficient SplitSeq
instead of Split
#38157
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
Conversation
SplitSeq
instead of Split
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes for encryption files LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 on metrics
Replace Split in "for range strings.Split(...)" by Go 1.24's more efficient, iterators-based strings.SplitSeq. Generated using modernize by running: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./... and committing the relevant changes with some minor manual edits. Signed-off-by: Tobias Klauser <tobias@cilium.io>
abdece1
to
f47f617
Compare
/test |
Rebased to resolve merge conflict. @aditighag could you please take a look? Would be nice to have this merged before it picks up another merge conflict. |
@cilium/contributing @aditighag gentle ping for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewing for contributing because it makes me sad to see such a straightforward PR having to go through that many reviews.
Replace
Split
infor range strings.Split(...)
by Go 1.24's more efficient, iterators-basedstrings.SplitSeq
.Generated using modernize by running:
and committing the relevant changes with some minor manual edits.