Re: Another regexp performance improvement: skip useless paren-captures

From: Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Joel Jacobson <joel(at)compiler(dot)org>
Subject: Re: Another regexp performance improvement: skip useless paren-captures
Date: 2021-08-10 00:18:27
Message-ID: D41F1C85-D92C-4457-9D1D-1339F2EC95F9@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Aug 9, 2021, at 5:14 PM, Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com> wrote:
>
> our $match;
> if ('foo' =~ m/((.)(??{ die; })){0}(..)/)

I left in a stray variable. A prior version of this script was assigning to $match where it now has die. Sorry for any confusion.


Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bossart, Nathan 2021-08-10 00:22:50 Re: make MaxBackends available in _PG_init
Previous Message Mark Dilger 2021-08-10 00:14:29 Re: Another regexp performance improvement: skip useless paren-captures