Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: There is a serious inefficiency in the way zsh handles wildcards



On Thu, 11 Sep 2014 10:54:23 -0300
Paulo César Pereira de Andrade
<paulo.cesar.pereira.de.andrade@xxxxxxxxx> wrote:
>   Just as a note, I noticed that the huge slowdown usually would
> only happen if there was a match, if there was nothing matching
> /tmp/*.* (usually a directory or a symlink to one) handling of the
> pattern would not cause noticeable delay.

I've a vague feeling I optimised it some time ago so that if there was a
string component to the pattern it searched for that to check it was
worth doing all the hairy pattern stuff, but I may be misremembering
and I'm too lazy to check...

pws



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