-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completely skip computation if nothing has changed
This commit introduces a global dirty state. This check is used when invoking a project. It checks to see if any of the known files have changed, or if any files have been deleted or added. Projects are dirty if the assetfile has changed. When projects are clean invoking them does nothing. This check saves costly build time. The build tree is constructed internally every time. This can be costly. Running those rake tasks would not change anything anyway so that process can be by passed. This commit should make the preview server much faster. Say you have a set set of assets: images, application.js, application.css, and index.html. Opening the preview server will send an HTTP request for index.html. This request will compile the pipeline. Further requests to application.js, application.css and images should return almost instantly because pipeline does not have to do any processing.
- Loading branch information
twinturbo
committed
Oct 31, 2012
1 parent
26b512c
commit 75f79b8
Showing
5 changed files
with
94 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters