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

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

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jul 20, 2017, 14:19 UTC
Message-ID
<20170720141927.18274-7-avarab@gmail.com>
In-Reply-To
<20170720141927.18274-1-avarab@gmail.com>
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.
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
-- 
2.13.2.932.g7449e964c
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 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.