[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Horrible std::regex performance
From: |
Greg Chicares |
Subject: |
Re: [lmi] Horrible std::regex performance |
Date: |
Sat, 16 Jul 2016 00:47:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0 |
On 2016-07-16 00:12, Vadim Zeitlin wrote:
> On Fri, 15 Jul 2016 23:41:03 +0000 Greg Chicares <address@hidden> wrote:
[...]
> GC> What does the PCRE measurement above mean? Did you translate
> GC> 'test_coding_rules.cpp' to use the PCRE C API instead of C++ regex?
>
> Yes, exactly. AFAICS I did it correctly, although maybe not in the most
> efficient way as I mostly tried to keep the changes as small as possible.
> I'm almost sure PCRE performance could be improved further with some effort
> (OTOH I'm half sure that xxx::regex performance might also be improved,
> processing ~170000 lines in even 1 second is not really something to be
> proud about on modern hardware).
Is your PCRE version ready to share? I'd really like to see it.