ohler55/oj
View on GitHub ↗ ★ 3,228 C
Optimized JSON
14 mentions on Hacker News by 11 people: 5 stories, 9 comments · first 2012-03-14 · latest 2026-05-13
20082026
-
…but according to the standard, they're entirely entitled to, and so is Oj. I don't see anything in https://github.com/ohler55/oj/blob/develop/pages/Modes.md#oj... specifying that Strict will force floating points to specific precision vs…
comment by Twirrim · 2025-01-03 · in Optimizing Ruby's JSON, Part 4 -
Ah, I figured why on the Oj side `ruby/json` appeared slower: https://github.com/ohler55/oj/pull/949
comment by byroot · 2025-01-03 · in Optimizing Ruby's JSON, Part 4 -
> I should point out that other Oj modes perform much better than the JSON gem Which modes are that? https://github.com/ohler55/oj/blob/develop/pages/Modes.md#oj... I tried: Oj.dump(obj, mode: :strict) and a few others and none seemed…
comment by byroot · 2025-01-03 · in Optimizing Ruby's JSON, Part 4 -
…idea, but imo it's a bit too complicated solution. [0] https://github.com/procore/blueprinter [1] https://github.com/ohler55/oj
comment by wrestlerman · 2019-10-12 · in How to write fast code in Ruby on Rails -
Don't think it's an order of magnitude faster, but oj is supposed to be the standard for Ruby. https://github.com/ohler55/oj
comment by rajangdavis · 2018-12-07 · in Faster and simpler with the command line: deep-comparing JSON files with jq -
…There really aren't many practical drawbacks to using it for transport on the same system. [1]: https://github.com/ohler55/oj
comment by pselbert · 2015-01-19 · in Using Go to improve your Ruby application's performance -
If you want json to be fast in Ruby, chances are you might want to look at https://github.com/ohler55/oj Not sure how easy it is to jam oj into either of these two serializers though. EDIT: rabl seems to support it according to the webpage
comment by rb2k_ · 2014-05-23 · in Benchmarking JSON Generation in Ruby -
It seems like it boils down to use oj[0] as a parser I think... [0] https://github.com/ohler55/oj
comment by diggan · 2013-07-04 · in XML/JSON parsing trick and benchmark -
…not as robust as it needs to be though, it's a shame. I use OJ to speed up the actual JSON render: https://github.com/ohler55/oj
comment by Breefield · 2013-02-09 · in The performance of .to_json in Rails sucks