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

New api: voracious_sort_by? #14

Open
Dan-wanna-M opened this issue Jun 30, 2024 · 1 comment
Open

New api: voracious_sort_by? #14

Dan-wanna-M opened this issue Jun 30, 2024 · 1 comment

Comments

@Dan-wanna-M
Copy link

It is convenient to provide apis that use a lambda to obtain a key rather than implementing a trait, similar to slice::unstable_sort_by.

@lakwet
Copy link
Owner

lakwet commented Aug 27, 2024

mmmh, this sort is heavily optimized.
by using a lambda we would lose all the optimization by type
I could add that, but, I would need to use a default sort (there are several sorts in this lib, and depending on the type you want to sort, the "best" sort is selected) and therefore, decrease performance

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