git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] grep: print the pcre2_jit_on value

From
Carlo Arenas <carenas@gmail.com>
Date
Jul 29, 2019, 08:43 UTC
Message-ID
<CAPUEspjS7wpp=XVJpxzyEoKq-27C72hiVRynwERwZsmpEcLJkQ@mail.gmail.com>
In-Reply-To
<nycvar.QRO.7.76.6.1907251111140.21907@tvgsbejvaqbjf.bet>

On Thu, Jul 25, 2019 at 5:50 AM Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

> On Wed, 24 Jul 2019, Beat Bolli wrote:
> > Do you mean something like this?
>
> Yes!

Ideally, though, you want to print those values closing to the match function (pcre_exec for PCRE1 or pcre2_[jit_]match for PCRE2 as they might change after they are extracted from the PCRE configuration with pcre[2]-config()

> > If so, I'll wait a bit until it's clear whether Ævar's series [1] or my
> > patch is going to be applied.
>
> Sounds fair

FWIW they are both applied (yours all the way to next), but Ævar's changes now in pu (but likely to be rerolled soon) will most likely remove your code (as explained on Junio's emails)

Show 5 quoted lines
> However, my reading of those patches is that they still keep support for
> JIT'ed and non-JIT'ed PCRE2 invocations (preferring the former if
> available, without any UI to change Git's behavior in that respect), so
> I would be surprised if this patch wasn't applicable after Ævar's
> patches.

the PCRE1 changes are significant enough that would break the current check and might need a more convoluted check to figure out if JIT was actually used by pcre_exec.

more details in the configuration[1]
Carlo
[1] https://www.pcre.org/original/doc/html/pcrejit.html
Previous: Johannes Schindelin
Message 6 of 6 in “grep: print the pcre2_jit_on value”
  1. grep: print the pcre2_jit_on valueBeat Bolli, Jul 22, 2019
  2. Junio C HamanoJul 23, 2019
  3. Johannes SchindelinJul 23, 2019
  4. Beat BolliJul 24, 2019
  5. Johannes SchindelinJul 25, 2019
  6. Carlo ArenasJul 29, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.