|
Boost Users : |
Subject: Re: [Boost-users] google.stringencoders vs (boost.string_algo & boost.lexical_cast)
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-06-01 09:10:33
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net