Jruby+rails 3.2 compiles scss very slow in development

I am using jruby-1.6.6 with rails 3.2 currently. And I am using gem
‘bootstrap-sass’, ‘~> 2.0.1’ to import twitter bootstrap as scss.

But in development mode, I start the app by jruby -S rails s, and every
time I changes a little bit in the scss, and fires refresh page, it
takes very long time to compile the application.css.scss, in which I
import all other scss files. jRuby takes like 10 times the time of MRI
ruby takes. See the time comparison below:

the time it takes with jruby-1.6.6:
Started GET “/playground/dashboard” for 0:0:0:0:0:0:0:1%0 at 2012-02-29
12:30:18 +0800
Processing by PlaygroundController#index as HTML
Parameters: {“partial”=>“dashboard”}
Rendered playground/_dashboard.erb (1.0ms)
Rendered playground/show.html.erb within layouts/application (2.0ms)
Compiled application.css (11540ms) (pid 5518)
Completed 200 OK in 11660ms (Views: 11660.0ms)

the time it takes with ruby-1.9.2-p290:
Started GET “/playground/dashboard” for 127.0.0.1 at 2012-02-29 12:32:53
+0800
Processing by PlaygroundController#index as HTML
Parameters: {“partial”=>“dashboard”}
Rendered playground/_dashboard.erb (0.0ms)
Rendered playground/show.html.erb within layouts/application (0.5ms)
Compiled application.css (1283ms) (pid 5674)
Completed 200 OK in 1323ms (Views: 1323.1ms)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs