JuliaIO / BSON.jl

Other
158 stars 39 forks source link

compression while storing BSON #59

Open vishaluk opened 4 years ago

vishaluk commented 4 years ago

Is it possible to specify compression while storing BSON files?

racinmat commented 3 years ago

I gues it's out of scope of this image, this is what I'm using:

Using BSON, CodecZlib
open(GzipCompressorStream, filename, "w") do fid
    BSON.bson(fid, Dict("data"=>deepcopy(data_to_save)))
end

the deepcopy is to bypass the #26 .