I am optimizing some of the slow transactions in our Rails application, and I can see a significant amount of time spent rendering JSON views:
Rendered welcome/index.json.rabl (490.5ms) Completed 200 OK in 1174ms (Views: 479.6ms | ActiveRecord: 27.8ms)
Assuming the API call returns exactly the data it needs to return, What is the fastest way to render JSON in rails?
We use Rabl because of the ability to easily share code, but we are not attached to it.
json ruby-on-rails ruby-on-rails-3
John Naegle May 4 '12 at 3:23 p.m. 2012-05-04 15:23
source share