Skip to content
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

Figure out which sort to use for NSArray #3

Open
mulle-nat opened this issue Oct 8, 2019 · 0 comments
Open

Figure out which sort to use for NSArray #3

mulle-nat opened this issue Oct 8, 2019 · 0 comments

Comments

@mulle-nat
Copy link
Member

Quicksort is basically the default, but timsort is supposed to use fewer comparisons, which could be a win since -isEqual: is kinda slow.

Links: https://github.com/swenson/sort/blob/master/sort.h and https://github.com/rust-lang/rust/pull/38192 seem relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant