Boost logo

Boost :

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


"Stewart, Robert" <Robert.Stewart_at_[hidden]> wrote in message
news:DF2E67F3D097004694C8428C70A3FD69046843E230_at_msgbal516.ds.susq.com...
>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.

Regards,
Dave Jenkins


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