GitHub - saka1/simdjson_ruby: Ruby bindings for simdjson
simdjson gem
A Ruby bindings for simdjson.
Installation
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
Usage
Simdjson.parse returns a Hash (if successful).
require 'simdjson' p Simdjson.parse %|{"a": 12345}| # => {"a"=>12345} Simdjson.parse %|abcd| # => raise Simdjson::ParseError
Contributing
- Bug reports and pull requests are welcome on GitHub at https://github.com/saka1/simdjson_ruby.
Formatter
Please use clang-format like this:
$ clang-format -style=file -i ext/simdjson/*
License
The gem is available as open source under the terms of the MIT License.