Giter Club home page Giter Club logo

flexbuffers's Introduction

FlexBuffers

FlexBuffers is a schema-less, dynamic format optimized for reading single value in a document. It's a child format of FlatBuffers.

For more detailed specification, please refer https://google.github.io/flatbuffers/flexbuffers.html

NOTE: I'm planning extend flexbuffers by adding ability to attach metadata to each element. And I'm going to rename project name as it will lose few backward compatibility. (type bit space is too tight to attach metadata information, so FBT_VECTOR_BOOL might be no longer available in forked version)

Performance

Flexbuffers is optimized for lookup single value in a document. About 3x faster than BSON's LookupErr method. (BenchmarkFlexbuffersTraverseByTraverser-4 vs BenchmarkBSONTraverseTree-4)

cd bench
go test -tags unsafe -bench . -benchmem
BenchmarkFlexbuffersTraverseByReference-4           	 1636011	       726 ns/op	       0 B/op	       0 allocs/op
BenchmarkFlexbuffersTraverseByTraverser-4           	 4406778	       272 ns/op	       0 B/op	       0 allocs/op
BenchmarkBSONTraverseTree-4                         	 1271134	       932 ns/op	       0 B/op	       0 allocs/op
BenchmarkJSONTraverseByFastJson-4                   	     277	   5343157 ns/op	10257193 B/op	   11229 allocs/op
BenchmarkJSONTraverseByFastJsonWithoutParseTime-4   	 6981626	       151 ns/op	       0 B/op	       0 allocs/op
BenchmarkMsgpackTraverse-4                          	    1900	    848233 ns/op	     288 B/op	       5 allocs/op

flexbuffers's People

Contributors

kanosaki avatar ashish-sjc avatar fran6co avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.