From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6983 invoked by alias); 9 Dec 2010 22:06:26 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28511 Received: (qmail 1625 invoked from network); 9 Dec 2010 22:06:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.213.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=osjEo0phi5C2Jivsppq8EN5lJTOBwgSenJ54Bw4BR0k=; b=QeFXQdBOkagsdm7/xe20X3SaMShUkFKdC+fZvCCRcToZ+qwUP2G21awB0/fxE7sCPW yqKn/rGvp+hbvwDth77sA/twHG+bpJYBpjoBDkgGmIKeA1ygGsauDQ5ptIadVZApwtiz 5yo180xYCMBtmMA1Y6autM2YtX9GuP0etjSjI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=wbOoLidHbuNDqIGLDk+lud/1nRoZArlpxZR5CTQdvMT/vr0wxgQPnP69PPGRkYWobo vR2PmuiXj1abWrS1N7ukbsoEL2eg79UIfjeQLNif5tQf10IiTG+RcjwZbJ3O+rBfk98P K3UYDOnCBhRqbVjyB8+3gVPA/zAhL7wDO0mwE= MIME-Version: 1.0 Date: Thu, 9 Dec 2010 14:06:19 -0800 Message-ID: Subject: Git completion slowness From: Brett Simmers To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=0016368e20838c29740497017267 --0016368e20838c29740497017267 Content-Type: text/plain; charset=ISO-8859-1 I asked about this in IRC and got a request to send some details to the mailing list, so here they are - Whenever I try to use tab completion with a git command, zsh hangs for a few minutes using full cpu before coming back with an answer. It usually isn't causing much disk activity, just cpu. The command I try to use most often is "git checkout foo", where foo is the first few letters of a branch name, but the slowness seems to also happen anywhere else I need to complete a filename or branch/tag name. Some details of my repository: - 96,000 files - .git is 17GB - Deepest directory nesting in the repository is 15 levels but most files are no deeper than 7 levels I'm running zsh 4.3.10 with _git from today's CVS. Host OS is Ubuntu 10.04.1, 6GB of RAM with an Intel Core2Quad 2.4ghz. My git repo is on an SSD (OSZ Vertex I think), so none of the hardware should be a bottleneck. Bash-completion on the same setup in the same repo works fine without any delays. -Brett --0016368e20838c29740497017267--