https://github.com/astupidbear/bsonmmap.jl
Extensions to BSON.jl
https://github.com/astupidbear/bsonmmap.jl
Last synced: about 1 month ago
JSON representation
Extensions to BSON.jl
- Host: GitHub
- URL: https://github.com/astupidbear/bsonmmap.jl
- Owner: AStupidBear
- License: mit
- Created: 2019-10-06T12:15:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T03:45:27.000Z (about 4 years ago)
- Last Synced: 2025-02-24T19:49:20.001Z (8 months ago)
- Language: Julia
- Size: 20.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Add mmap support to to BSON.jl
[](https://github.com/AStupidBear/BSONMmap.jl/actions)
[](https://codecov.io/gh/AStupidBear/BSONMmap.jl)## Installation
```julia
using Pkg
pkg"add BSONMmap"
```## Usage
```julia
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`
```julia
bsload("test.bson", mmaparrays = true) == dict
```Or just use `BSON`s native `load`
```julia
withenv("BSON_MMAP" => true) do
BSON.load("test.bson")
end
```