
1 Jul
2009
1 Jul
'09
6:40 p.m.
Each call to parse() is constructing the sregex variables. If you make them static or move them out of the loop, it should help a lot.
Thanks, but see my reply to Eric's. While that would help with the benchmark performance, the nature of the function I'm testing means I can't do that otherwise.
How about making them static const? That should be thread safe.