Zsh Mailing List Archive
Messages sorted by:
Re: Extended globbing seems to have become much slower in recent versions of Zsh
- X-seq: zsh-users 21337
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Extended globbing seems to have become much slower in recent versions of Zsh
- Date: Tue, 1 Mar 2016 16:03:56 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=M5xfIQviSW15iLkM4M5KQ3hbEMz6BSOlbvNyPmKFyl8=; b=Ezfq4UTS/nL+nZujRqSsPAAUr/S0aoIZjccOKn21nbqbsE1EH1rtbktgMypSICFF43 PV2RsUXF3VcaLhIbblseeuX/1vkgOBsqI9Ew600SKBnoW9G8Z1+ol9xm7IzdB93GDR9X emkHFDUv+xeI5/jP8RpD93GZU9bN2BnpFtxlXCFywqoAH0+XCuEkP+1h3nS63UQ9wx8x Md0LBkCl76IbUe4sWlRAhew3kEH6ab2xBMkzlKlBfMenf90KCDOYprvKwGno+OOA7x+C z7jhSkn3t5YC99OcwqVX6pZWaNPVaDoM0O1pHHA6dnrWK50JhoEvudDJapfpr7O8OLsm 2jwg==
- In-reply-to: <CABZhJg-ynr8eERC+q-yVYk5sfZK-6yqdLcoTrerA8d6cERkyEQ@mail.gmail.com>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABZhJg--GUe_1zfXxvvX4Dn=t8MgqG2e7poFCSFKKtC3a3AQ7g@mail.gmail.com> <160229111212.ZM4272@torch.brasslantern.com> <CABZhJg84-E=P0-194mwQz4oGkZfwgBnevViBjMUZz7c2PV-a6A@mail.gmail.com> <160301102807.ZM8036@torch.brasslantern.com> <CABZhJg-ynr8eERC+q-yVYk5sfZK-6yqdLcoTrerA8d6cERkyEQ@mail.gmail.com>
On Mar 1, 8:11pm, Jesper Nygards wrote:
} New runs with your suggestion:
Well, that's interesting. Seems to indicate that building argv to pass
to builtins is even more expensive than an array assignment.
Still, I can't find anything on my system that causes as dramatic a
difference as yours from 5.0.5 -> 5.2+. The (-.D) qualifiers seem to
have the largest effect for me, for you its the exclusion pattern.
For the sake of covering all bases, are you sure the same compiler
optimization flags were applied to the 5.0.5 and 5.2 builds you are
testing? With your exclusion pattern and about 13,000 files in **/*,
there are about 100,000 calls to strlen() in either version, so any
optimization of that might make a large difference.
I did find a small but observable speedup when compiling without
MULTIBYTE_SUPPORT, too; there were a lot of multibyte repairs to
pattern.c after 5.0.5.
Messages sorted by: