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

[New] Add --auto to git gc to speed up install & upgrade #1576

Merged
merged 1 commit into from
Jul 13, 2017
Merged

[New] Add --auto to git gc to speed up install & upgrade #1576

merged 1 commit into from
Jul 13, 2017

Conversation

PeterDaveHello
Copy link
Collaborator

Use --auto can really help speed up the upgrade and also install process if there is no need to re-compress all the objects, just let git to decide it.

Not sure if GitHub has optimized their git backend server, I noticed that now a new clone of nvm would only a single pack in the .git objects which means it's already compressed, we don't need to force it.

@ljharb
Copy link
Member

ljharb commented Jul 11, 2017

Can you elaborate a bit more on what this command does?

@PeterDaveHello
Copy link
Collaborator Author

If there is no need to do the gc work, then git just doesn't do it. Without --auto, git will always do it again and again even there is no any needs.

@ljharb ljharb added installing nvm Problems installing nvm itself performance This relates to anything regarding the speed of using nvm. labels Jul 13, 2017
@ljharb ljharb merged commit 38a568c into nvm-sh:master Jul 13, 2017
@PeterDaveHello PeterDaveHello deleted the speedup-install-from-git branch July 13, 2017 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installing nvm Problems installing nvm itself performance This relates to anything regarding the speed of using nvm.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants