README.md in jbuilder-2.0.0.beta2 vs README.md in jbuilder-2.0.0

- old
+ new

@@ -195,13 +195,14 @@ ``` ruby Jbuilder.key_format camelize: :lower ``` -Libraries similar to this in some form or another include: +Faster JSON backends +-------------------- -* Active Model Serializers: https://github.com/rails-api/active_model_serializers -* RABL: https://github.com/nesquena/rabl -* JsonBuilder: https://github.com/nov/jsonbuilder -* JSON Builder: https://github.com/dewski/json_builder -* Jsonify: https://github.com/bsiggelkow/jsonify -* Representative View: https://github.com/mdub/representative_view +Jbuilder uses MultiJson, which by default will use the JSON gem. That gem is currently tangled with ActiveSupport's all-Ruby #to_json implementation, which is slow (work is being done to correct this for a future version of Rails). For faster Jbuilder rendering, you can specify something like the Yajl JSON generator instead. You'll need to include the yajl-ruby gem in your Gemfile and then set the following configuration for MultiJson: + +``` ruby +require 'multi_json' +MultiJson.use :yajl + ```