What’s the slowest part in Rails? • Request Handling (ActionDispatch) • NO! • Database Queries (ActiveRecord) • NO, just a bit! • Rendering (ActionView, HAML, JBuilder) • YES!
What does Tilt do? • one time • compile the template • build a method • cache this method • per rendering • bind the method to the context • call the method • unbind the method from context • one time • compile the template • build a method • cache this method • per rendering • bind the method to the context • call the method • unbind the method from context