You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all I'm not sure it's the right place to post this. I'm not even sure if it's actually a bug or simply the way asset pipeline works. Anyway, here's the problem:
In the project I'm working on, asset compilation has been taking a huge amount of time (1-2mins). Since we're using @import 'compass' rather than sprockets' require, whenever an SCSS file changes, rails recompiles everything - including compass. It's a fairly large projects with a bunch of dependencies, but still 1-2minutes is quite a significant amount of time. I've been trying to track down why it's taking so long - so far with little success.
However, when I attached dtruss to the rails process, it revealed that a considerable chunk of that time is spent on looking for compass files. It basically checks for compass files in every possible asset directory in load_path.
We're running Rails 4.2 (recently upgraded from 4.0.x). I have yet to do a comparison with the old version, but the problem got bigger after the upgrade.
The text was updated successfully, but these errors were encountered:
Hi,
First of all I'm not sure it's the right place to post this. I'm not even sure if it's actually a bug or simply the way asset pipeline works. Anyway, here's the problem:
In the project I'm working on, asset compilation has been taking a huge amount of time (1-2mins). Since we're using
@import 'compass'
rather than sprockets'require
, whenever an SCSS file changes, rails recompiles everything - including compass. It's a fairly large projects with a bunch of dependencies, but still 1-2minutes is quite a significant amount of time. I've been trying to track down why it's taking so long - so far with little success.However, when I attached dtruss to the rails process, it revealed that a considerable chunk of that time is spent on looking for compass files. It basically checks for compass files in every possible asset directory in load_path.
To give you an idea how it looks:
Here's the whole (filtered) output from dtruss (around 2.8mb, 15215 calls to lstat64 just for compass files): https://gist.github.com/pch/f41bb68316339877faad
Is this a bug/something that can be improved?
We're running Rails 4.2 (recently upgraded from 4.0.x). I have yet to do a comparison with the old version, but the problem got bigger after the upgrade.
The text was updated successfully, but these errors were encountered: