Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Speed improvement patch for __git_files and __git_files_relative
- X-seq: zsh-workers 29166
- From: Nikolai Weibull <now@xxxxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxx>
- Subject: Speed improvement patch for __git_files and __git_files_relative
- Date: Fri, 6 May 2011 15:03:49 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=ZXL2Tuf1rQMT7nbK2KfqrvBYQ1tsCnpZms6TvVFo0b4=; b=GCRrOJbLl5Zia4zEovYbVZvi2883qfJPyXREglNMQ3KjU3ro+nrZGU7OZg7Z7MH+SR md4wU8bIbq16oFlO2QyyBFuUMKaTxKXQLSCOmxbbkQPyyV3mfZ9AE9bY1RGcBpRhMSHc 9KDcJgIZxQ7nsfUCDQ+42WrN1xKtrW/n3ptPo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=HiH0clctbhf7HQCVuLkmgF/koQ4Oz3djV28zkcNSmou2yx6D3PU+/ufDYMwJ+wkJFU TUA0GNc/CAbvu2VAzM0JrrdKQhz6p7UoNGvCA/miDRwh2evs/YdZfPo22H9ojOPrfQYI 5LPQd5WPKd5ji7lisyNRW3VhVsobRvKwnSZZw=
- 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
- Sender: nikolai.weibull@xxxxxxxxx
Hi!
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.
Attachment:
__git_files.patch
Description: Binary data
Messages sorted by:
Reverse Date,
Date,
Thread,
Author