Best way to save 10 GB vector to disk in Haskell
haskell
Solution
I haven't tested it myself, but you could try to use vector-binary-instances, which provides `Binary` instances for `Vector`s, and then use binary, for example encodeFile.
Problem
I have a 10GB Data.Vector.Unboxed vector that I want to efficiently save to disk. What's the best, most efficient way? I plan to read it from a memory-mapped file too. I have seen this package this package but only works with Storable but I need to stay with unboxed. I was thinking of converting to a list but I am assuming this is not very ideal.