Re:Ask HN: What do you want to see in Rails 4.1?
by cheald on Sunday August 11, 2013 @03:37PM
(#6195995)
The oj gem helps json generation a ton. The circular reference checks are still slow though.
[ Parent
| on HN ]
Re:Ask HN: What do you want to see in Rails 4.1?
by phamilton on Sunday August 11, 2013 @05:02PM
(#6196320)
In my tests, serialization to a hash before oj writes it out to json is the slowest part. Doing 1000 records (~30 entries each, some with nested entries) to json via OJ and as_json results in less than 20% spent in OJ and the other 80% in generating the hash.