[Patch] Regex bracket matcher cache optimization

Jonathan Wakely jwakely.gcc@gmail.com
Wed Jan 8 09:24:00 GMT 2014


On 7 January 2014 19:36, Tim Shen wrote:
>
> I didn't noticed that's so time consuming. I think reducing the
> compile time is possible (by templating several member functions
> instead of whole _Compiler<> class).

Ouch! Yes, that's quite a bit slower, and this code is already very
slow to compile.

I haven't looked at the code recently, but another option that
sometimes helps is to have a base class that implements the common
functionality and then derive four classes from it, but minimise the
amount of code in the derived classes.

Thanks for the patches!



More information about the Gcc-patches mailing list