Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install from cached vcs #333

Merged
merged 3 commits into from May 21, 2014
Merged

Conversation

fooman
Copy link
Contributor

@fooman fooman commented May 19, 2014

Composer is able to cache downloaded files by default into the .composer directory in the user's HOME directory. Unfortunately it does not do this for repositories, see for example composer/composer#1338.

This pull request changes the download location for git and hg repositories to a cached location under $HOME/.composer/_n98_magerun_download during the InstallCommand and avoids the copyThenRemove command.

For second installs I am getting the following time improvements:

real    3m49.229s
user    0m17.068s
sys     0m3.022s

vs

real    0m51.583s
user    0m9.027s
sys     0m1.088s

The PR leaves the current behaviour for tar/zip dist downloads unchanged.

@AydinHassan
Copy link
Contributor

👍 for this. Looks great.

cmuench added a commit that referenced this pull request May 21, 2014
@cmuench cmuench merged commit 213e1be into netz98:develop May 21, 2014
steverobbins pushed a commit to steverobbins/n98-magerun that referenced this pull request Apr 7, 2015
steverobbins pushed a commit to steverobbins/n98-magerun that referenced this pull request Apr 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants