Boost logo

Boost :

Subject: Re: [boost] [xpressive] Performance Tuning?
From: Dave Jenkins (david_at_[hidden])
Date: 2009-07-01 14:40:02


>> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk