Speed Up Git Pull
interrobeng.com
Speed Up Git Pull
1–10 of 50 posts
Re: Speed Up Git Pull
#2[1] http://www.anchor.com.au/blog/2010/02/ssh-controlmaster-the-...
Re: Speed Up Git Pull
#3If you're a heavy SSH user, using multiplexing in this manner can have negative consequences [1]. Downsides include having all your multiplexed connections exiting if the master exits! [1] http://www.anchor.com.au/blog/2010/02/ssh-controlmaster-the-...
Host github.com
ControlMaster auto
ControlPath /tmp/%r@%h:%p
ControlPersist yesRe: Speed Up Git Pull
#4Re: Speed Up Git Pull
#5However, I wonder if this isn't treating a symptom versus a root cause.
Is saving that 5s round-trip so common in your workflow that you needed to optimize it, and would it be more productive to refactor the app so you and collaborators are working on different files?
Also, this has the entirely valuable guidance that pushing to a local server is much faster than a remote server. There's a Github Enterprise product, for you to run close to you. It'd be an interesting calculation to see the performance hit from waiting 5s to push to a remote server, versus the performance hit from keeping your nearby server up and patched.
But nice to read, kudos all the same!
Re: Speed Up Git Pull
#6If you're a heavy SSH user, using multiplexing in this manner can have negative consequences [1]. Downsides include having all your multiplexed connections exiting if the master exits! [1] http://www.anchor.com.au/blog/2010/02/ssh-controlmaster-the-...
I believe this is what ControlPersist is meant to solve - it may not have existed when that blog post was written.
Re: Speed Up Git Pull
#7Re: Speed Up Git Pull
#8If you're a heavy SSH user, using multiplexing in this manner can have negative consequences [1]. Downsides include having all your multiplexed connections exiting if the master exits! [1] http://www.anchor.com.au/blog/2010/02/ssh-controlmaster-the-...
I usually set ControlPersist to 30 seconds, which may not be long enough for people hoping to get performance improvements from GitHub, . Setting it to too large a value increases the risk that you'll have stale server sockets after a network outage.
Re: Speed Up Git Pull
#9> Establishing an SSH connection every time you perform a Git operation costs many round-trips
I don't really understand why the author is saying this. The whole point of git is to be distributed and not to push/pull at each commit.
That being said, he found something that speeds up his workflow tremendously, so congratulations.