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



On Tue, 01 Mar 2016 16:03:56 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 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.
>...
> 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.

There was a fairly recent optimsiation to handle patterns by metafying
earlier in the case of parameter substitutions.  Globbing shouldn't have
been substantially affected although the order of operations is a bit
different.  I don't see how this could be relevant, though.

pws



Messages sorted by: Reverse Date, Date, Thread, Author