1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] Avoid loading the bulk of Haml when running the executable.

This has a surprisingly positive effect on speed.
It seems to shave off between 0.3 and 0.4 seconds from startup time.
This commit is contained in:
Nathan Weizenbaum 2010-04-24 04:19:10 -07:00
parent 93f5a9498b
commit e8f4369e51

View file

@ -38,5 +38,7 @@ module Haml
end
require 'haml/util'
require 'haml/engine'
require 'haml/railtie'
unless $0 =~ /sass(-convert)?$/
require 'haml/engine'
require 'haml/railtie'
end