Skip check precompiled assets locally
What does this MR do?
Skip check precompiled assets locally
It is rare we add a new precompiled asset nowadays. For each asset, sprockets currently checks every asset path directory (we have about 9K) which is very slow. So disable this check locally.
Speeds up integrations tests locally by about 30%
See !61297 (comment 570514966) for detailed investigation
Before
10 runs of bundle exec spring rspec spec/requests/search_controller_spec.rb:
real 0m42.608s
real 0m39.568s
real 0m40.408s
real 0m42.415s
real 0m37.789s
real 0m35.908s
real 0m36.557s
real 0m37.171s
real 0m37.561s
real 0m37.301s
After
10 runs of bundle exec spring rspec spec/requests/search_controller_spec.rb:
real 0m28.530s
real 0m26.941s
real 0m27.779s
real 0m28.079s
real 0m28.194s
real 0m26.253s
real 0m26.703s
real 0m26.898s
real 0m26.938s
real 0m28.407s
Edited by Thong Kuah