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 Sat, 5 Mar 2016 09:47:23 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Mar 4,  9:49pm, Peter Stephenson wrote:
> } Subject: Re: Extended globbing seems to have become much slower in recent 
> }
> } This is what I meant.  It may not be related to the slow down in
> } question, but it should speed up repeated use of exclusion patterns in
> } any case.
> 
> Sadly, on my desktop this actually SLOWS DOWN the process even further.
> The below is for a glob of 13,000 files (largest/deepest tree I have
> handy) with "repeat 3" and Jesper's pattern:

That suggests either I've made a mistake in the optimisation portion
(which I didn't explicit test, only that it gave the correct behaviour),
or the repeated allocation ad nfreeing of similar length strings is
close to optimal in allocation already... or a combination.

pws



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