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

Potentially interesting sorting comparison: Blitsort #2

Open
tecosaur opened this issue Jul 28, 2022 · 1 comment
Open

Potentially interesting sorting comparison: Blitsort #2

tecosaur opened this issue Jul 28, 2022 · 1 comment

Comments

@tecosaur
Copy link

Hello,

It's great to see your attempts to make sorting in Julia faster. A while ago I was trying to find the cutting edge in sorting algorithms and I ended up stumbling across https://github.com/scandum/blitsort.

It might be interesting to add that to the comparison plot, and if it compares favorably perhaps a Julia implementation may be possible? Taking the README at face value, it lists a number of desirable attributes:

  • Best case O(n), worst case O(n log n)
  • O(1) memory usage
  • stable
  • adaptive

That page also breaks down the sorting performance into different types of input, which could also be useful here I think to give a more complete picture.

E.g. (from the blitsort readme)
image

@LilithHafner
Copy link
Owner

Thanks! I'd be happy to review a PR adding that as a comparison.

That graph shows "the relative performance on 100,000 32 bit integers", a use case where Julia already achieves stable O(n) worst-case runtime, and outperforms standard c/c++ algorithms by more than 7x so it is unlikely that it would be a good idea to use blitsort as Julia's default in this case.

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

No branches or pull requests

2 participants