Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
git completion really slow in a big repo
- X-seq: zsh-users 14220
- From: Ryan Ye <yejianye@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: git completion really slow in a big repo
- Date: Mon, 6 Jul 2009 11:54:50 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ck8KFmLCD0sZZcZvd3bjHi3IZGm3U+JCkSYwQ6eTcRk=; b=X0BCmyPMOiXq6AgYPcKxwRfUVjp0tqS8E6wzeUMuXsvlZD66LEVpRj+7Vcv9RUlR+F dCtDHgfe1TnfpKdf86Ou5/1d2iUlESuJlTchF+pdZzPjUqbnF5TfObOQ9iraPCfAm8Nu eWdecwXEn0fp9mvyhSQJvGkFt7Bq0l6jTlyrM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=K2g9J1roYqFZlKcExYN1BaYnMcxPHjnwYRruiiotPaJ1JzHGVJXuh9LJmKBCb9qz0r rUV1/Yw3jIuPROtPGbgjmi7J7QrQNIKeM5jYZFyIlv172y2c5c068QualkhXFDjdzO2O 914SRlHHPy4ZffoZ0ZRG9/42JphPmg9+sheH4=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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