Rails 4 is out featuring Russian Doll caching (aka Cache Digests). In this
article, I apply Russian Doll caching to one of my poorer performing
Rails 3 pages using the cache_digests gem.
ActionView templates are great. They are easy to code, manage and extend but
the one thing they are not is fast...at least not out of the box.
In this article, I'll be using TraceView to time ActionView performance. If
you haven't used TraceView before, checkout my previous
article Instrumenting Ruby on Rails with TraceView.
ActionView Is Slow; Pitfalls Ahead
ActionView puts forth a great development pattern of views and partials that
is easy to understand, implement and maintain but that comes at a cost: The
rendering process is complex and slow.
The screenshot above shows the timings for the Users#show URL on Gameface.
The page in question is fairly straight forward containing four c... (more)
TraceView by AppNeta provides deep performance monitoring of web
It gives you insight into your web application performance such as this:
and a per request drill-down that shows you the nitty gritty detail of where
time is spent in individual requests (full-size):
and even end-user monitoring:
I run it on Gameface and PasswordPusher - it’s an essential tool in
identifying problem areas, performance bottlenecks and simply poor performing
code. (Read: ActionView)
Disclaimer: I authored the Ruby instrumentation for Traceview so I may be a
bit biased. …but with good... (more)