We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I did some benchmark and find out the the sort have terrible performance with duplicate value
#[bench] fn lazysort(b: &mut Bencher) { b.iter(|| { use lazysort::Sorted; let mut rng = thread_rng(); let v: Vec<i32> = std::iter::repeat_with(|| rng.gen_range(0, 2)) .take(10000) .collect(); let _: Vec<_> = v.iter().sorted().take(1).collect(); }) }
You should implement the quick sort using the 3-ways method.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I did some benchmark and find out the the sort have terrible performance with duplicate value
You should implement the quick sort using the 3-ways method.
The text was updated successfully, but these errors were encountered: