Very poor boost::lexical_cast performance

后端 未结 9 1026
别那么骄傲
别那么骄傲 2020-11-27 10:31

Windows XP SP3. Core 2 Duo 2.0 GHz. I\'m finding the boost::lexical_cast performance to be extremely slow. Wanted to find out ways to speed up the code. Using /O2 optimizati

9条回答
  •  臣服心动
    2020-11-27 11:21

    if speed is a concern, or you are just interested in how fast such casts can be with C++, there's an interested thread regarding it.

    Boost.Spirit 2.1(which is to be released with Boost 1.40) seems to be very fast, even faster than the C equivalents(strtol(), atoi() etc. ).

提交回复
热议问题