Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: git completion really slow in a big repo
- X-seq: zsh-users 14246
- From: Ryan Ye <yejianye@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: git completion really slow in a big repo
- Date: Thu, 23 Jul 2009 10:13:09 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=OZ3aKt6k0TqG71mcxiiAy7UxbtrEsbxqCwJTlCmhOkI=; b=GU+7sFXZRm1w9JCua+HabrPJDN+d8eSgWoAiNOfMzDjSY+tugKuIN8uAQ4p6SROgNM 0hz8GQtvWFkBTk047JBqDNTeFItcCTSpuKFSQbJ43Wu9aRaysRiPGjTuejSeUR9UWLMG en1PyAN/i9T2YgRfx38vY1NjUamKtySxt9yE4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=CeFne44dgk7WbEcTiQuPtdbv/tv1Q5qJ6kRVvmqtvmowMC6etL82h2XSlvEGbDMx6j Wl0Wpo0AE9rGP31eFzD4O0wi2KIKA2WaEvGB2WVp27NcGC32RoAaGhCgeojUfUnk9Zfo dKnvDHzLoE8WUH4MRM9axBi5wQzn1kxsNdkbU=
- In-reply-to: <291b78b50907052054q52e5515cp3104fa34b19e670a@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <291b78b50907052054q52e5515cp3104fa34b19e670a@xxxxxxxxxxxxxx>
Anyone know the solution about this ?
Another question is if I can't bear the slowness of git completion, how could I turn that off in .zshrc ?
Thanks,
Ryan
2009/7/6 Ryan Ye
<yejianye@xxxxxxxxx>
I am using zsh 4.3.10. When I type 'git checkout master-<TAB>', the completion for the rest of the branch name is really slow (take more than 15 secs).
When I use strace to log all system calls in the completion, I found zsh access all the files in all sub dirs under current working directory. Because I'm executing the command at the root of my tree, there're more than 10,000 files, which really slows things down. To prove that's the cause of the problem, I cd into a leaf directory and do 'git checkout master-<TAB>' again. This time the completion finishing in less than one sec.
So my question is that why a git checkout need reading the full file list under a directory? it's unacceptable for a large tree. Is there any options I could tweak to change this behavior ?
Thanks,
Ryan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author