|
From: | Paul Eggert |
Subject: | bug#22655: grep -Pz '^' now fails! |
Date: | Sat, 19 Nov 2016 00:09:11 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
Stephane Chazelas wrote:
Why would it make it slower. AFAICT, PCRE_MULTILINE *adds* some overhead.
After looking into it I now remember why PCRE_MULTILINE speeds things up. See: http://git.savannah.gnu.org/cgit/grep.git/commit/?id=f6603c4e1e04dbb87a7232c4b44acc6afdf65fef where using PCRE_MULTILINE sped up 'grep -P "z.*a"' by a factor of 220.
[Prev in Thread] | Current Thread | [Next in Thread] |