Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Speed improvement patch for __git_files and __git_files_relative
- X-seq: zsh-workers 29220
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: Speed improvement patch for __git_files and __git_files_relative
- Date: Wed, 11 May 2011 15:44:48 +0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tvI3AaWV0mvUGdUH+arG5a6bgbE3JUDi9+xzvF8U1nY=; b=BGD9MbJZpzvd1ZKT3um7+wd1ogT0TaEr7jKluka0oTdtGzi6DAV6h/s9f5X03BTnLq AgP0luyTKsU7Z04yP5TRNkTRdpcQgoxun/rn6ImmegbFWuePp5GmR9rQzcvThwZCAx7H kpsMyWg9Ycbb/AcjHkc8O9XMmpjaxEAkUweCE=
- 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 :cc:content-type:content-transfer-encoding; b=f+opZViq8d/L65XBBkpnTf+m8hsSxo0wQ8i+Y0dBdss8rW3yWItW+Tp3GVhBnuHTf7 80cfa6xTpLILZXjQHNIkMa6kN8fCqqkyWYzjXnqEXAac2mcZJ6oPGIL4+67dHlA1M0Xz vh6ZEyEmh1fIw3L9CZv0MPsytRfq04Y6qfEQE=
- In-reply-to: <87sjsl2wqg.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BANLkTimkmU0ExT8duptV2V6_7NHSwANGOQ@mail.gmail.com> <87sjsl2wqg.fsf@ft.bewatermyfriend.org>
On 11 May 2011 15:27, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> Nikolai Weibull wrote:
>> I’ve now put together a patch for __git_files and
>> __git_files_relative. __git_files is a lot faster than previous
>> versions and __git_files_relative should be a lot faster too, now that
>> it only uses substitutions. (Well, there’s a for loop that iterates
>> over the file names to determine the common path prefix, but I see no
>> way of avoiding it.)
>>
>> It would be great if this could make it into the 4.3.12 release, so
>> please give it a try as soon as possible.
>
> Alright, I've been trying this. The speed improvement in my linux
> kernel clone is quite impressive.
>
> I'm running into a segfault, though. The git repository is located in
> `/tmp/linux-2.6'. I've changed a file (fs/adfs/dir.c) slightly and I'm
> doing this:
>
> % git add f<tab>
> % git add fs/<tab>
> % git add fs/adfs/<tab>
>
> And that's where the shell crashes. It's a build of today's HEAD.
>
> The kernel repository was cloned from this URI:
> <git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git>
>
> I don't have the time to look into this right now, so here's a back
> trace:
This crash seems to be getting pretty common now...
http://www.zsh.org/mla/workers/2011/msg00391.html
http://www.zsh.org/mla/workers/2011/msg00513.html
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author