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

Add 'sortNub' and 'unstableNub' to 'universum' #68

Closed
chshersh opened this issue Oct 20, 2017 · 1 comment
Closed

Add 'sortNub' and 'unstableNub' to 'universum' #68

chshersh opened this issue Oct 20, 2017 · 1 comment

Comments

@chshersh
Copy link
Contributor

Results in PR #66 show next things:

  1. hashNub is faster than ordNub when there're not so many different keys.
  2. When you're using Text data type than hashNub is faster.
  3. sortNub = Set.toList . Set.fromList has better performance than ordNub but should be used when you also need sorting.
  4. unstableNub = HashSet.toList . HashSet.fromList has better performance than hashNub.

So, all new functions should be added to universum and documented properly with use cases and examples.

@vrom911 Tell me if you have interest in implementing this issue as well :)

@vrom911
Copy link
Contributor

vrom911 commented Oct 20, 2017

I'm interested! :)

chshersh added a commit that referenced this issue Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants