« Return to Thread: [xpressive] Performance Tuning?

Re: [xpressive] Performance Tuning?

by Eric Niebler-3 :: Rate this Message:

Reply to Author | View in Thread

Stewart, Robert wrote:

> Dave Jenkins wrote:
>> "Stewart, Robert" wrote:
>>> I was experimenting with Xpressive to see how it would compare
>>> with some custom, string-based numeric input parsing.  The
>>> Xpressive code is over 175X slower than the custom code.
>>
>> 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.

Really what you're saying is: "I can't/don't want to use xpressive in
the ways that are *documented* to make it perform well. Why is it slow?"
You already have your answer.

--
Eric Niebler
BoostPro Computing
http://www.boostpro.com
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: [xpressive] Performance Tuning?