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:
parent
93f5a9498b
commit
e8f4369e51
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue