-
Notifications
You must be signed in to change notification settings - Fork 1.4k
🌱 refactor: replace slower and inefficient sorting functions #12473
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: main
Are you sure you want to change the base?
🌱 refactor: replace slower and inefficient sorting functions #12473
Conversation
This PR is currently missing an area label, which is used to identify the modified component when generating release notes. Area labels can be added by org members by writing Please see the labels list for possible areas. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @Surya-7890. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
c3aafa6
to
5b73737
Compare
/retest |
/retest-required |
516df73
to
f543ab8
Compare
/retest-required |
This commit replaces all the instances of sort.Sort with slices.SortFunc. The godocs for sort.Sort recommends using slices.SortFunc, as it is faster and more efficient.
f543ab8
to
66d3377
Compare
/retest-required |
This commit replaces all the instances of sort.Slice with slices.SortFunc. The godocs for sort.Slice recommends using slices.SortFunc, as it is faster and more efficient.
/retest-required |
This commit replaces all the instances of sort.SliceStable with slices.SortStableFunc. The godocs for sort.SliceStable recommends using slices.SortStableFunc, as it is faster and more efficient.
/retest-required |
This PR replaces all the instances of
The godocs for the existing sorting functions recommend using the alternatives provides, as they are faster and more efficient.
What this PR does / why we need it:
Currently, slower sorting functions are being used, these must be replaced with faster and more efficient sorting functions.
Which issue(s) this PR fixes:
Fixes #12426