Last Updated: February 25, 2016
· nfedyashev

Speed up the Asset Pipeline by only recompiling changed assets

Turbo Sprockets for Rails 3.2.x

Speeds up your Rails 3 rake assets:precompile by only recompiling changed assets, based on a hash of their source files.

Only compiles once to generate both fingerprinted and non-fingerprinted assets.

Just drop the gem in your Gemfile, under the :assets group:

group :assets do
  gem 'turbo-sprockets-rails3'

Run bundle to install the gem, and you're done!

Test it out by running rake assets:precompile. When it's finished, you should see a new file at public/assets/sources_manifest.yml, which includes the source fingerprints for your assets.

Go on, run rake assets:precompile again, and it should be a whole lot faster than before.

turbo-sprockets-rails3 can now be considered relatively stable.