Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Extended globbing seems to have become much slower in recent versions of Zsh
- X-seq: zsh-users 21348
- From: Jesper Nygårds <jesper.nygards@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Extended globbing seems to have become much slower in recent versions of Zsh
- Date: Fri, 4 Mar 2016 09:17:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=kIjaNh20HBiUobjh7vhILKaTjGpYvyTqlILYSzSSzkc=; b=PpiRanlDd3CWlvXAHneQxkRNtB3FqE8Xcz1Acgpkq/j0vUhku5vY0UtRC6tXJBkugw Eusfk5aN4L/RWA+LwFplrxQKP3qJX7peFsVmhyVPkOlaz7NAl3yFiQLdVqspD02VTxrw +TQTs2YIUfAxCQGwiNCT/VoWr03HL2VYzffT0rKipm7HkughTW0MwOvnULpsTKC+N+vt EjLhBHRabUcYfr7EMt0h+8bAhnxztpLECc/nywBDOB6tPFvmsE1giIJioX2eyGl6/pYe joLqltIK88ajg2huvTg+WC4TrAu60KfMI9EKE/S7lL3h+KjKvl1/P/0ZhKJf2azJCiZY tgmw==
- In-reply-to: <CAH+w=7a+QUeBM33oUuUMFgVomoc165zAnwyvXuGDd3MzW8QoJg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.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> <160301160356.ZM10258@torch.brasslantern.com> <CABZhJg9Ow=V_pwfNoS+GOCU4iGLaxJokeMfy7WjH2fegbvfYsQ@mail.gmail.com> <CAH+w=7a+QUeBM33oUuUMFgVomoc165zAnwyvXuGDd3MzW8QoJg@mail.gmail.com>
I have run 5.2, compiled with and without the --with-stack-allocation flag.
It made no difference however. You can see that the runs below are very
similar in the measured times.
With "--with-stack-allocation":
% zsh --version
zsh 5.2 (x86_64-apple-darwin14.5.0)
% /usr/local/bin/zsh -f
% setopt EXTENDED_GLOB; float SECONDS MYNOW
% MYNOW=$SECONDS; :
**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*)(-.D);
print $(( $SECONDS - $MYNOW ))
54.868589
% MYNOW=$SECONDS; :
(#i)**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*)(-.D);
print $(( $SECONDS - $MYNOW ))
47.001608000000019
% MYNOW=$SECONDS; :
**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*);
print $(( $SECONDS - $MYNOW ))
38.805462000000006
% MYNOW=$SECONDS; :
(#i)**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*);
print $(( $SECONDS - $MYNOW ))
32.296016000000009
-------------------------------------------------------
Without "--with-stack-allocation":
% /usr/local/bin/zsh --version
zsh 5.2 (x86_64-apple-darwin14.5.0)
% /usr/local/bin/zsh -f
% setopt EXTENDED_GLOB; float SECONDS MYNOW
% MYNOW=$SECONDS; :
**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*)(-.D);
print $(( $SECONDS - $MYNOW ))
53.115647000000003
% MYNOW=$SECONDS; :
(#i)**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*)(-.D);
print $(( $SECONDS - $MYNOW ))
42.988532000000006
% MYNOW=$SECONDS; :
**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*);
print $(( $SECONDS - $MYNOW ))
36.619570999999993
% MYNOW=$SECONDS; :
(#i)**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*);
print $(( $SECONDS - $MYNOW ))
30.786290000000008
On Thu, Mar 3, 2016 at 1:06 AM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
wrote:
> On Wed, Mar 2, 2016 at 12:39 AM, Jesper Nygårds
> <jesper.nygards@xxxxxxxxx> wrote:
> > Previously I was using the Apple-provided version of 5.0.5, and the
> > Homebrew version of 5.2. Now I have instead used different versions of
> > Homebrew zsh, and I have made sure that the compiler flags were the same
> > through all versions. I have then run the same tests again, with versions
> > 5.0.5, 5.0.6, 5.1 and 5.2.
>
> OK, thanks; next thing to try: configure --with-stack-allocation
>
> I've scanned through diffs and I just don't see any structural changes
> that would account for that slowdown; the above is a bit of a
> longshot.
>
> Incidentally (for -workers) there's a typo in ChangeLog -- 32932:
> Src/glob.c -- should say Src/subst.c.
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author