|
From: | Paul Eggert |
Subject: | bug#56079: Missing performance optimisation: Word start/end tests |
Date: | Sun, 19 Jun 2022 10:26:43 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
On 6/19/22 00:38, sur-behoffski wrote:
Yes, and this comes up even in strict POSIX without GNU extensions, as "a^" is a valid extended regular expression that cannot match anything.a\<b [abc]\>[def]
I don't know whether dfa.c, regex.c, etc. optimize for this, but if not it would be nice if they did. For example, 'grep -E "a^" FOO' can silently exit with status 1 without even opening FOO.
[Prev in Thread] | Current Thread | [Next in Thread] |