[Patch] Regex bracket matcher cache optimization
Wed Jan 8 22:38:00 GMT 2014
On 01/08/2014 11:11 PM, Tim Shen wrote:
> On Wed, Jan 8, 2014 at 5:20 AM, Paolo Carlini <email@example.com> wrote:
>> On 01/08/2014 10:24 AM, Jonathan Wakely wrote:
>>> Ouch! Yes, that's quite a bit slower, and this code is already very
>>> slow to compile.
> With this patch (who is based on a-fixed.diff, committed earlerly),
> who use templated member functions instead of templating the whole
> _Compiler, time consumption is:
> g++ -g -Wall -std=c++11 -g -Wall -std=c++11 -O3 regextest.cc 3.79s
> user 0.14s system 98% cpu 3.981 total
> Comparing to 4.5s it's better and probably fine.
> Booted and tested with -m32 and -m64 respectively.
I agree, it's probably fine for now, but please actually attach the patch ;)
More information about the Gcc-patches