1 Jun
2009
1 Jun
'09
1:10 p.m.
Mathias Gaunard skrev:
Roman Shmelev wrote:
stringencoders are told to be 2x faster than std approaches. But what about boost?
Given boost::lexical_cast and boost::format are using standard C++ streams, which are known to be slower than C sprintf and even more slower than itoa dtoa, the answer seems obvious.
boost::lexical_cast bypasses streams for certain types as an optimization. -Thorsten