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

Re: [PATCH 6/6] RelNotes: add more notes about PCRE in 2.14

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 20, 2017, 19:11 UTC
Message-ID
<xmqqbmoely9l.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170720141927.18274-7-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
Show 6 quoted lines
> We were missing any mention that:
>
>  - PCRE is now faster with JIT
>  - That it's now faster than the other regex backends
>  - That therefore you might want to use it by default, but beware of
>    the incompatible syntax.

Hmph. All of that has been more or less deliberate, as I want the release notes to be more like table of contents, one bullet per item with short description, not a novelette with one paragraph per item.

These should already be in the documentation when they do want to decide if they want to use JIT; somebody who downloads 2.15 or later and wants to decide if they want JIT shouldn't have to dig down to earlier release notes that introduced the option for the first time.

Show 27 quoted lines
> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
> ---
>  Documentation/RelNotes/2.14.0.txt | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/RelNotes/2.14.0.txt b/Documentation/RelNotes/2.14.0.txt
> index fb6a3dba31..a6a1cb963b 100644
> --- a/Documentation/RelNotes/2.14.0.txt
> +++ b/Documentation/RelNotes/2.14.0.txt
> @@ -88,7 +88,16 @@ UI, Workflows & Features
>     learned to say "it's a pathspec" a bit more often when the syntax
>     looks like so.
>  
> - * Update "perl-compatible regular expression" support to enable JIT.
> + * Update "perl-compatible regular expression" support to enable
> +   JIT.
> +
> +   This makes grep.patternType=perl (and -P and --perl-regexp) much
> +   faster for "git grep" and "git log", and is generally faster than
> +   the system's POSIX regular expression implementation. Users
> +   concerned with "git grep" performance or "git log --grep"
> +   performance might want to try setting grep.patternType=perl. Note
> +   that the syntax isn't compatible with git's default of
> +   grep.patternType=basic.
>  
>   * "filter-branch" learned a pseudo filter "--setup" that can be used
>     to define common functions/variables that can be used by other
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 8 of 12 in “2.14 RelNotes improvements”
  1. 0/6 2.14 RelNotes improvementsÆvar Arnfjörð Bjarmason, Jul 20, 2017
  2. 1/6 RelNotes: mention "log: add -P as a synonym for --perl-regexp"Ævar Arnfjörð Bjarmason, Jul 20, 2017
  3. 2/6 RelNotes: mention "log: make --regexp-ignore-case work with --perl-regexp"Ævar Arnfjörð Bjarmason, Jul 20, 2017
  4. 3/6 RelNotes: mention "sha1dc: optionally use sha1collisiondetection as a submodule"Ævar Arnfjörð Bjarmason, Jul 20, 2017
  5. 5/6 RelNotes: remove duplicate mention of PCRE v2Ævar Arnfjörð Bjarmason, Jul 20, 2017
  6. Junio C HamanoJul 20, 2017
  7. 6/6 RelNotes: add more notes about PCRE in 2.14Ævar Arnfjörð Bjarmason, Jul 20, 2017
  8. Junio C HamanoJul 20, 2017
  9. 4/6 RelNotes: mention that PCRE v2 exposes the same syntaxÆvar Arnfjörð Bjarmason, Jul 20, 2017
  10. Junio C HamanoJul 20, 2017
  11. Junio C HamanoJul 20, 2017
  12. Ævar Arnfjörð BjarmasonJul 21, 2017

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.