[Patch, PR 61720] Clear regex BFS match queue after every iteration

Paolo Carlini paolo.carlini@oracle.com
Wed Jul 9 08:14:00 GMT 2014


Hi,

On 07/09/2014 10:08 AM, Jonathan Wakely wrote:
> All the 28_regex tests run as part of the same target:
>
>          normal7) \
>            dirs="`cd $$srcdir; echo 26_*/* 28_*/[c-z]*`";; \
>
> I've tried moving the 26_numeric tests to a different target but it
> doesn't make much difference, the regex tests still take longer than
> any other target. We could try splitting up the 28_regex tests across
> two targets, but the fact is that it takes 2-5 seconds to compile any
> test using std::regex, so the more tests we add the slower the
> testsuite gets.
I'm not an expert in this area, but my guess is indeed that it would be 
beneficial to split up 28_regex across multiple targets, why not more 
than 2, I would try 4 for example.

In general, I agree it would certainly make sense grouping the tests, 
but not all in a single file! Anyway, let's fix this bug first.

Paolo.



More information about the Libstdc++ mailing list