Skip to content

Use slices.Sort instead of sort.Strings#8

Merged
dylandreimerink merged 2 commits intomainfrom
pr/tklauser/sort-replace
Aug 16, 2024
Merged

Use slices.Sort instead of sort.Strings#8
dylandreimerink merged 2 commits intomainfrom
pr/tklauser/sort-replace

Conversation

@tklauser
Copy link
Copy Markdown
Member

See commits for details.

slices.Sort is slightly faster and this also removes one dependency
layer.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
To avoid reallocations when appending. Noticed while working on the
previous commit.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser requested review from a team and dylandreimerink and removed request for a team August 15, 2024 13:47
@dylandreimerink dylandreimerink merged commit 535330f into main Aug 16, 2024
@dylandreimerink dylandreimerink deleted the pr/tklauser/sort-replace branch August 16, 2024 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants