« Return to Thread: [xpressive] Performance Tuning?

Re: [xpressive] Performance Tuning?

by Dave Jenkins-3 :: Rate this Message:

Reply to Author | View in Thread

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


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: [xpressive] Performance Tuning?