[Haskell-cafe] list of range

PICCA Frederic-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Mon Oct 4 16:32:20 UTC 2021


> Set Int is not lazy. [Int] is lazy, but it is inefficient for eliminating
> duplicates. IntSet is also strict, but internally it is almost a bit
> vector, i.e. storage efficient. If the ranges are really large, then you
> might need data-interval&friends. However, a list of numbers of image
> files might not be that large, and IntSet will probably be a good choice.

We have 100 files with 3000 images.

300000 * 4 bytes = 1.2 M

is it that big ?


More information about the Haskell-Cafe mailing list