Many modern Rails application use third-party assets like JavaScript and CSS libraries or frameworks. In most cases these assets are minified and compressed by tools outside of the Rails asset pipeline. For example popular gem React on Rails uses WebPack to build JavaScript bundles. When we include these files to assets pipeline it goes to minify again. We can safely avoid double minification and reduce assets compilation time. Meanwhile it is still good to add a digest and gzip compression.
Savings are strongly depend on how many minified assets are used in an application, some numbers for a random application:
# standard setup
$ time RAILS_ENV=production rake assets:precompile
real 2m44.868s
user 2m25.503s
sys 0m17.170s
# avoid double minification
$ time RAILS_ENV=production rake assets:precompile
real 2m2.841s
user 1m53.312s
sys 0m10.562s