MiniRacer https://github.com/discourse/mini_racer is ready for testing.
Can you help out measuring how it improves performance for rake assets:precompile
in your app?
- Run:
rm -fr public/assets
RAILS_ENV=production time bundle exec rake assets:precompile
- Edit
Gemfile
. Removetherubyracer
, add:
gem 'execjs', github: 'rails/execjs'
gem 'mini_racer'
-
bundle install
-
Run:
rm -fr public/assets
RAILS_ENV=production time bundle exec rake assets:precompile
I think there is a way to run compilation in parallel, people with long running times should try that as well as MiniRacer is safe to use from multiple threads (you get an isolate per context)