-
Notifications
You must be signed in to change notification settings - Fork 178
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
IntSet.fromList and its benchmarks #652
Comments
That does sound like a serious benchmark weakness! I would conjecture that the low-hanging fruit for |
It would probably be easier to make an attempt on |
@jwaldmann I just opened #653 to try to be more clever about list conversions for |
"see if I can duplicate" Yes, I will look into it over the next days (not today). |
regarding benchmarks and their use of |
I experimented with IntSet.fromList via binary
fold union
, see jwaldmann@975781b(cf. #330 but without computing runs)
I thought I had a huge improvement - but then found that this is due to the benchmarks: all the data is dense (contiguous numbers, even numbers, odd numbers). For these, my implementation cuts runtimes (of fromList) nearly in half. But for sparse data (square numbers, pseudo-random numbers) it does not.
On the other hand it does not increase runtime much so perhaps there's a way to make use of the idea. That's for later.
For now, I suggest that benchmarks be extended by some sparse sets.
The text was updated successfully, but these errors were encountered: