Skip to content

perf(alloc): feature for sort_unstable#26

Open
jameslkingsley wants to merge 1 commit into
sstadick:masterfrom
openplayuk:sort-unstable
Open

perf(alloc): feature for sort_unstable#26
jameslkingsley wants to merge 1 commit into
sstadick:masterfrom
openplayuk:sort-unstable

Conversation

@jameslkingsley
Copy link
Copy Markdown

  • Adds a feature flag for using sort_unstable instead of sort
  • Uses conditional compilation instead of cfg! to avoid adding branches
  • sort_unstable reduces allocations but can be slower if the Vec is already partially sorted

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.

1 participant