Hi,
I’d like to save a dictionary to a file with more than 12500 entries. I’ve read some suggestion here and here. But I was wondering whether these are the most efficient way to do so?
Thanks a lot.
Hi,
I’d like to save a dictionary to a file with more than 12500 entries. I’ve read some suggestion here and here. But I was wondering whether these are the most efficient way to do so?
Thanks a lot.
How about using Serialization?
I’ve had good luck with BSON.jl (binary JSON file). I am wrapping a Fortran code that generates 100MB of data per run which I place in a Dict{}, and it loads/saves very fast (I’ve never benchmarked, but it its so fast for me its not an issue).
It looks like Serialization.serialize()
writes a few bytes as headers and dumps the bytes of an object directly. I think the computation overhead is much lower than that the BSON has. But of course, it would be nice to see comparative studies.