From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Subject: Re: There is a serious inefficiency in the way zsh handles wildcards
Date: Thu, 11 Sep 2014 15:02:26 +0100 [thread overview]
Message-ID: <20140911150226.215ec1db@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <CAHAq8pGY7SyXQfJPzty+th-8Dd1Y9tbWLUPubRMe8_CW+5m2Wg@mail.gmail.com>
On Thu, 11 Sep 2014 10:54:23 -0300
Paulo César Pereira de Andrade
<paulo.cesar.pereira.de.andrade@gmail.com> 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
prev parent reply other threads:[~2014-09-11 14:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-08 13:27 Paulo César Pereira de Andrade
2014-09-08 14:01 ` Peter Stephenson
2014-09-11 13:54 ` Paulo César Pereira de Andrade
2014-09-11 14:02 ` Peter Stephenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140911150226.215ec1db@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).