stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Carlos Llamas <cmllamas@google.com>
To: Jialu Xu <xujialu@vimux.org>
Cc: gregkh@linuxfoundation.org, cristian.ciocaltea@collabora.com,
	masahiroy@kernel.org, vipinsh@google.com, stable@vger.kernel.org
Subject: Re: [PATCH v2] scripts/tags.sh: fix incompatibility with PCRE2
Date: Tue, 7 Mar 2023 15:43:03 +0000	[thread overview]
Message-ID: <ZAdbhyW+tv0krirG@google.com> (raw)
In-Reply-To: <20230303112051.3890371-1-xujialu@vimux.org>

On Fri, Mar 03, 2023 at 07:20:51PM +0800, Jialu Xu wrote:
> 
> Just got a working grep without \K, seems that it is three times more
> efficient than sed in my test, is it necessary to update?
> 
> 	grep -Poh '(?<=^  )\S+|(?<== )\S+[^\\](?=$)' {} \+ |
> 
> --
> Jialu
>

I just tried this and it does have better performance. Even better than
your previous grep expression it seems, so I would definitely send a
patch.

--
Carlos Llamas

      reply	other threads:[~2023-03-07 15:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Y+0WJuh1fIg0oEpR@google.com>
2023-02-15 18:38 ` [PATCH v2] scripts/tags.sh: fix incompatibility with PCRE2 Carlos Llamas
2023-03-03 11:20   ` Jialu Xu
2023-03-07 15:43     ` Carlos Llamas [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=ZAdbhyW+tv0krirG@google.com \
    --to=cmllamas@google.com \
    --cc=cristian.ciocaltea@collabora.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=masahiroy@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=vipinsh@google.com \
    --cc=xujialu@vimux.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.
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).