Bento
Bento is a new Bencoding library for Elixir focusing on wicked-fast speed without sacrificing simplicity, completeness, or correctness.
It takes inspiration from Poison, a pure-Elixir JSON library, and uses several of the techniques found there:
- Extensive sub-binary matching
- A hand-rolled parser using several techniques known to benefit HiPE for native compilation
- IO list encoding
- Single-pass decoding
Preliminary benchmarking has put Bento's performance as nearly always faster than existing Elixir libraries.
Installation
Bento is available in Hex. The package can be installed by:
Add bento to your list of dependencies in
mix.exs:def deps do
[{:bento, "~> 0.1.0"}]end
Ensure bento is started before your application:
def application do
[applications: [:bento]]end
Usage
TODO: Document usage.
License
See LICENSE.