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

dumb_sort #185

Open
zbraniecki opened this issue Nov 21, 2019 · 2 comments
Open

dumb_sort #185

zbraniecki opened this issue Nov 21, 2019 · 2 comments

Comments

@zbraniecki
Copy link

This issue popped up in context of zbraniecki/unic-locale#49

SmallVec is often used when the common scenario is a very limited number of elements. In such cases pulling in the whole complex sort mechanism is an overkill, so having some sort of dumb_sort which is cheap and can reasonably well handle 1-4 elements, would fit into smallvec.

@Manishearth
Copy link
Member

This should likely be selection or bubble sort

@mbrubeck
Copy link
Collaborator

This might be best as a separate crate so it could be used with ArrayVec as well (and any other slice type).

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

3 participants