Add mmap support to to BSON.jl

Build Status Coverage

Installation

using Pkg
pkg"add BSONMmap"

Usage

using BSON, BSONMmap
dict = Dict("a" => ones(Float32, 10), Dict("b" => zeros(10)))
BSON.bson("test.bson", dict)

You can load it back using bsload

bsload("test.bson", mmaparrays = true) == dict

Or just use BSONs native load

withenv("BSON_MMAP" => true) do
    BSON.load("test.bson")
end