From ccaa3059e88a1acc7bbac40343a491c0d69cef8d Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Fri, 27 May 2011 18:32:57 +0000 Subject: [PATCH] Improved english and documentation design for #5576. [SVN r72225] --- lexical_cast.htm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lexical_cast.htm b/lexical_cast.htm index 2292d2a..7929dd4 100644 --- a/lexical_cast.htm +++ b/lexical_cast.htm @@ -318,15 +318,11 @@ Eliminate an overhead of std::locale if your program runs in the "C

Performance

-This table shows the execution speed for 100000 iterations in milliseconds of the following code blocks: +This table shows the execution time in milliseconds for 100000 calls of the following string formatters: - - - - +
From->To target = lexical_cast<Target>(source); std::stringstream ss;
ss << source;
ss >> target;
ss << source;
ss >> target;
ss.str(std::string());
ss.clear();
sscanf( (const char*)source, <...>, &target);
OR
sprintf( (char*)buffer, <...>, source);
- target = buffer;
From->To lexical_cast std::stringstream
with construction
std::stringstream
without construction
sscanf/sprintf
string->char<191710
string->int71152318
string->unsigned int71172217