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

sort: add --faster option #1190

Merged
merged 3 commits into from
Aug 5, 2023
Merged

sort: add --faster option #1190

merged 3 commits into from
Aug 5, 2023

Conversation

jqnatividad
Copy link
Collaborator

  • which uses a faster, non-allocating (in-place) unstable parallel sort for the default, --numeric and --reverse sorts
  • for --random sorts, this triggers using the fastrand crate with its Wyrand based cipher that is much faster than the standard random number generator's ChaCha algorithm

to support --faster --random sorts.

doesn't make our dependency tree bigger, as fastrand is already used by tempfile crate.
- which uses a faster, non-allocating (in-place) unstable sort for the default, --numeric and --reverse sorts
- for --random sorts, this uses triggers using the fastrand crate with its Wyrand based cipher that is much faster than the standard random number generator's ChaCha algorithm
@jqnatividad jqnatividad merged commit 67cbebc into master Aug 5, 2023
@jqnatividad jqnatividad deleted the sort-faster-option branch August 5, 2023 10:47
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