Please sign in to comment.
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...
Showing with 94 additions and 9 deletions.