-
Notifications
You must be signed in to change notification settings - Fork 14
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
add qsort #27
add qsort #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of small notes. But also, can you run cargo-tarpaulin on this and check we have good coverage? We have a lot of large, complex, undocumented functions here and we should really check they all work correctly no matter what input they are given. For example, I suspect we don’t hit the recursion limit? It may also make sense to unit test the helper functions.
Plus I don’t understand the failure on beta. Any ideas? |
It seems like stable rust doesn't not have runtime checks on Maybe this should be also fixed in upstream relibc. |
Added tests for more coverage. The coverage is at 96%, but testing the fallback to heapsort when we hit |
I have some ideas to make this much safer, basically operating entirely on indicies and only dealing with pointers when items have to be compared or swapped. But I see no reason for that to block this. |
f186c38
Most part of the source code is copied from relibc, which is under MIT license.