zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Subject: Re: Match to the end of string when using (S) flag
Date: Wed, 02 Nov 2016 09:46:42 +0000	[thread overview]
Message-ID: <20161102094642.36a548f5@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <161101142301.ZM25643@torch.brasslantern.com>

On Tue, 1 Nov 2016 14:23:01 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> With the leading "*" the algorithm has to check after each character
> whether the following characters match the sub-pattern in the parens,
> so it's checking every position multiple times.

Basically, the only optimised case in the matching code within the
shell is looking for a single must-match string, which doesn't apply
here.

Unless someone chooses to dedicate their lives to this --- and it is at
least a fairly well delimited part of the code --- that'll be the way it
stays.

pws


  parent reply	other threads:[~2016-11-02  9:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-01 14:25 Sebastian Gniazdowski
2016-11-01 16:27 ` Sebastian Gniazdowski
2016-11-01 18:29   ` Sebastian Gniazdowski
2016-11-01 21:23     ` Bart Schaefer
2016-11-02  6:53       ` Sebastian Gniazdowski
2016-11-02 15:50         ` Bart Schaefer
2016-11-02  9:46       ` Peter Stephenson [this message]
2018-11-07 12:30       ` Sebastian Gniazdowski
2018-11-07 15:25         ` Bart Schaefer
2018-11-07 17:16           ` Sebastian Gniazdowski

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=20161102094642.36a548f5@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).