Closed
Description
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.