Use Erubis when available for faster startup #610

merged 2 commits into from Feb 6, 2013


None yet

4 participants


Haml currently compiles 128 ERB templates during bootup as a result of #def_static_method. This takes roughly half a second on my machine.

By using Erubis' TinyRuby rather than ERB to do the parsing, this takes about 1/3rd as much time. If Erubis is not available, Haml will fall back to ERB.




I think it should be included to 3.2 release.

@norman norman merged commit e0fa2c8 into haml:3-2-stable Feb 6, 2013

1 check passed

Details default The Travis build passed
Haml member

Sorry for the long delay in applying this, I'm merging it into master and will get it into 3.2.0.

Haml member

Awesome! :metal:

@cheald cheald deleted the cheald:3-2-stable branch Feb 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment