nomasystems / nbson Goto Github PK
View Code? Open in Web Editor NEWErlang BSON encoder/decoder
License: Apache License 2.0
Erlang BSON encoder/decoder
License: Apache License 2.0
Adding nbson
as dependency takes around 200MB due to the bench/data folder being 105MB (+96MB of .git/objects
).
Maybe we could swap these files with a script that uses https://github.com/nomasystems/nbson_corpus to generate them on demand (I don't know how long do that take).
After finding any solution to that, and here is the tricky part, the big files would remain in the repository even if we remove them in a newer commit. Removing any trace of them isn't hard, but that would change the references of all the commits in this repository, something that it's not ideal. Even then, if we're going that route, the sooner, the better.
%%% nbson_SUITE ==> data_compressed: FAILED
%%% nbson_SUITE ==> {{badmatch,[#{<<"compressed">> =>
{data,compressed,
<<31,139,8,0,0,0,0,0,0,3,43,201,200,44,86,0,162,68,
133,146,212,138,18,0,33,62,234,238,14,0,0,0>>}}]},
[{nbson_SUITE,data_compressed,1,
[{file,"/Users/marcelino/Developer/nbson/test/nbson_SUITE.erl"},
{line,123}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1223}]}]}
It seems like there's a small difference between the expected and the returned value:
[#{<<"compressed">> =>
{data,compressed,
- <<31,139,8,0,0,0,0,0,0,19,43,201,200,44,86,0,162,68,133,
+ <<31,139,8,0,0,0,0,0,0,3,43,201,200,44,86,0,162,68,133,
146,212,138,18,0,33,62,234,238,14,0,0,0>>}}]
Tested both on Erlang 25.0.3 and 25.3.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.