From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21020 invoked by alias); 26 Apr 2011 19:12: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: 29057 Received: (qmail 73 invoked from network); 26 Apr 2011 19:12:24 -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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=vvSiRV+/+4fYOM37jEhUh7Ryn3lcUzks9ijN1FmjGhg=; b=utc6hL2XSUSVOOH9hUUq+agUUT9caua42ipwuunEgerpkSQOQQvKJUuPw669lHkkKd ph0FLn1O5Pp3WISWc6Nb0eHG/PQHx9dKCFsyg4GNQDecr6YoFuyf+n0PIPZMfsKYJKF/ auOHD/EVHU+WmyaIIAISr4a7YpmFrRoSPZyXY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=ZiEyqUXM7y25d/GvjDLMUcs2VbS1IpnOywyybpzRHLKBhkvakffPmJGNU7FImXpedr FyDCVAeEC4oqh92h03beG3H7sGyIqMAMl8NB1plZ5pCHJevHMTiXy2OW2bC9n6NkpZMi nm5szGF/tXQnw7bTsZTe++y86PCNMci54XqYk= MIME-Version: 1.0 Sender: nikolai.weibull@gmail.com In-Reply-To: <87liyw7t0o.fsf@ft.bewatermyfriend.org> References: <87liyw7t0o.fsf@ft.bewatermyfriend.org> Date: Tue, 26 Apr 2011 21:06:39 +0200 X-Google-Sender-Auth: l9BPdqRxSJB58FICanSpt0EXJRs Message-ID: Subject: Re: Slowness issue with git completion From: Nikolai Weibull To: Frank Terbeck Cc: Felipe Contreras , zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Apr 26, 2011 at 20:43, Frank Terbeck wrote= : > Felipe Contreras wrote: >> It's very easy to reproduce: >> % git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux= -2.6.git >> linux >> % cd linux >> % git log v >> >> It will take a looong time to figure out anything, specially if not >> cached. I think I recall investigating the issue and finding that it's >> looking for *all* the files in the git repo. > > Well yes. This is a known issue. > > I'm fairly sure that this is due to _multi_parts, which probably doesn't > scale for jobs like that. =C2=A0I once gave rewriting all that a shot and > ended up with a number of helpers for each "type" of file etc. (like > modified or ignored files). =C2=A0While they were significantly quicker How did you rewrite it? I tried implementing it with *(e:__git_cached:) (or similar), but that was, in my implementation, a lot slower. And this wasn=E2=80=99t even on Cygwin, where the forking make= s it even slower.