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

Re: [PATCH] grep: under --debug, show whether PCRE JIT is enabled

From
Carlo Arenas <carenas@gmail.com>
Date
Aug 26, 2019, 16:36 UTC
Message-ID
<CAPUEspj4BJLjXorUXMiZnFtNcmhym_2QL5GUqeaGaCoxk=zjtw@mail.gmail.com>
In-Reply-To
<xmqqftlnkj98.fsf@gitster-ct.c.googlers.com>
On Mon, Aug 26, 2019 at 9:02 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
>
> Carlo Arenas <carenas@gmail.com> writes:
>
> > ... but
> > ab/pcre-jit-fixes and UTF-8 validation are likely to make that more
> > difficult (even if it is a mostly self inflicted wound AFAIK)
>
> Hmm, in what way?  Do you mean that we'd be invested even more in
> pcre1 in an effort to keep supporting, that the sunk cost would
> dissuade us from deprecating the support even more, or something?

on the contrary, PCRE1 works fine but our recent changes make it worst unnecessarily (IMHO)

 for example 685668faaa (grep: stop using a custom JIT stack with PCRE
v1, 2019-07-26) adds 2 regressions as discussed in [1]
* git grep -P will now throw an error if there are non UTF-8 documents
in the haystack (even if JIT is available)
* git grep -P '^([/](?!/)|[^/])*~/.*' will now fail with a cryptic
PCRE error instead of succeeding (but at least will be consistent and
show the same error with PCRE2)
Carlo
[1] https://public-inbox.org/git/CAPUEspgStVxL=0SoAg82vxRMRGLSEKdHrT-xq6nCW1sNq7nLsw@mail.gmail.com/
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 8 in “grep: under --debug, show whether PCRE JIT is enabled”
  1. grep: under --debug, show whether PCRE JIT is enabledBeat Bolli, Aug 18, 2019
  2. Junio C HamanoAug 19, 2019
  3. Carlo ArenasAug 24, 2019
  4. Johannes SchindelinAug 26, 2019
  5. Carlo ArenasAug 26, 2019
  6. Junio C HamanoAug 26, 2019
  7. Carlo ArenasAug 26, 2019
  8. Junio C HamanoAug 27, 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.