sprockets icon indicating copy to clipboard operation
sprockets copied to clipboard

Increased Precompilation time for assets

Open vs37559 opened this issue 2 years ago • 0 comments

Expected behavior

Time taken by rails assets:precompile should be lower or similar to what was with sprockets 2.

Actual behavior

Task takes nearly same amount of time for two consecutive task runs. With Sprockets 2

First pre-compile run: ~8mins
Second pre-compile run: ~2mins (No asset changed)

With Sprockets 3 & 4

First pre-compile run: ~8mins
Second pre-compile run: ~8mins (No asset changed)

System configuration

  • Sprockets version: 4.1.1
  • Rails version: 6.1.6
  • Ruby version: 3.0.2
  • Coffee-rails: 5.0.0
  • haml_coffee_assets: 1.20.0
  • Sassc: 2.4.0

Not able to provide example app as I am upgrading my project parallely upgrading my project and am not sure what is causing this issue. It'd be a great help if any contributor can look into this!

vs37559 avatar Jul 28 '22 19:07 vs37559