3 ms·
Sure, we do, in fact, use RABL (https://github.com/nesquena/rabl https://github.com/nesquena/rabl) for much of our JSONifying needs. In general a much better so
by kranzky 14y ago
Sure, we do, in fact, use RABL (https://github.com/nesquena/rabl https://github.com/nesquena/rabl) for much of our JSONifying needs. In general a much better solution than calling .to_json on objects directly.
However, we also have situations where we have a reasonably large Hash that has a very trivial structure. In that case we do call .to_json directly on the Hash. And those are the situations where we're seeing a big performance hit.
- Breefield 14y agoRABL caching is still 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 https://github.com/ohler55/oj