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

Switch from trove to fastutil #54

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Zavster
Copy link
Contributor

@Zavster Zavster commented Aug 22, 2017

No description provided.

@@ -114,7 +114,8 @@
* @return the array of distinct values in the order they were observed
*/
public static Array<Integer> distinct(IntStream values, int limit) {
final DistinctInts distinct = new DistinctInts(limit);
final int capacity = limit < it.unimi.dsi.fastutil.Arrays.MAX_ARRAY_SIZE ? limit : 1000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we throw a new IllegalArgumentException here if limit > MAX_ARRAY_SIZE? I'm wondering if it'll be confusing users if we use a value that's different than what they passed in

@benmccann
Copy link
Contributor

@Zavster I'd love to see this PR make its way in after all the work that's been done on it already! :-)

@benmccann
Copy link
Contributor

@Zavster any reason not to merge this?

@Zavster
Copy link
Contributor Author

Zavster commented Dec 7, 2017

Hey Ben, I wanted to assess using Goldman Sachs collection as a possible alternative, but have been working on other parts of Morpheus lately. I will definitely adopt either GS collections or Fastutil, hopefully before year end.

https://github.com/goldmansachs/gs-collections

@benmccann
Copy link
Contributor

Any thoughts on this one?

@benmccann
Copy link
Contributor

@Zavster think you might still merge this?

@Zavster
Copy link
Contributor Author

Zavster commented Aug 20, 2018

Hey Ben, I am sitting out a non-compete which ends in early September. I will resume Morpheus development in anger then....

@benmccann
Copy link
Contributor

Good luck with the new gig!

I've been contributing quite a bit to Tablesaw in the meantime. I'm not quite sure what it'd look like, but it'd be cool to join forces on the libraries somehow

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.

None yet

2 participants