|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72225 - trunk/libs/conversion
From: antoshkka_at_[hidden]
Date: 2011-05-27 14:32:58
Author: apolukhin
Date: 2011-05-27 14:32:57 EDT (Fri, 27 May 2011)
New Revision: 72225
URL: http://svn.boost.org/trac/boost/changeset/72225
Log:
Improved english and documentation design for #5576.
Text files modified:
trunk/libs/conversion/lexical_cast.htm | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
Modified: trunk/libs/conversion/lexical_cast.htm
==============================================================================
--- trunk/libs/conversion/lexical_cast.htm (original)
+++ trunk/libs/conversion/lexical_cast.htm 2011-05-27 14:32:57 EDT (Fri, 27 May 2011)
@@ -318,15 +318,11 @@
<hr>
<h2><a name="performance">Performance</a></h2>
-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:
<table border="1" width="100%">
<tr>
- <td>From->To</td><td> <code>target = lexical_cast<Target>(source);</code> </td>
- <td><code>std::stringstream ss;<br>ss << source;<br> ss >> target;</code></td>
- <td><code>ss << source;<br> ss >> target;<br>ss.str(std::string());<br>ss.clear();</code></td>
- <td><code>sscanf( (const char*)source, <...>, &target);</code> <br>OR<br> <code>sprintf( (char*)buffer, <...>, source);<br>
- target = buffer;</code></td></tr>
+<tr><td>From->To</td><td> <code>lexical_cast</code> </td><td><code>std::stringstream</code><br>with construction</td><td><code>std::stringstream</code><br>without construction</td><td><code>sscanf</code>/<code>sprintf</code></td></tr>
<tr><td>string->char</td><td bgcolor="#00C000"><1</td><td>91</td><td>7</td><td>10</td></tr>
<tr><td>string->int</td><td bgcolor="#00C000">7</td><td>115</td><td>23</td><td>18</td></tr>
<tr><td>string->unsigned int</td><td bgcolor="#00C000">7</td><td>117</td><td>22</td><td>17</td></tr>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk