Skip to content

Conversation

@happygiraffe
Copy link
Collaborator

  • Sort() uses generics to remove some code.
  • SortFunc() may be faster in some circumstances, as it performs a three-way comparison rather than a two-way.

This is a code-refactoring to use newer Go APIs.

- `Sort()` uses generics to remove some code.
- `SortFunc()` may be faster in some circumstances,
  as it performs a three-way comparison rather than a two-way.
Copy link
Member

@lemire lemire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a nice simplificaiton.

@lemire lemire merged commit 53026c2 into RoaringBitmap:master Jan 27, 2026
8 checks passed
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