|
From: | Paul Eggert |
Subject: | Re: bug#26193: [0-9] versus [[:digit:]] |
Date: | Wed, 22 Mar 2017 11:01:43 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 03/22/2017 05:44 AM, John P. Linderman wrote:
In my measurements, P[0-9] is still a tiny bit slower if one is using glibc regex, due to a performance problem in glibc. You can work around it by configuring --with-included-regex. It's probably not worth worrying about, though.That puts the runtimes on equal footing:
By the way, using LC_ALL=C should help avoid performance problems like these in the future, if all you're doing is something where single-byte pattern matching suffices.
[Prev in Thread] | Current Thread | [Next in Thread] |