Boost C++ Libraries: Ticket #9648: string construction optimization - std::char_traits::copy could be used to avoid char by char copying https://svn.boost.org/trac10/ticket/9648 <p> As discussed on boost-users mailing list (see "[container.string] why isn't memcpy used in the internals?"), the performance of constructing boost::container::string from C string is a lot worse than in case of std::string. That's because boost::container::string does not use std::char_traits::copy for input C string copying but rather copies it character by character. </p> <p> Environment: </p> <ul><li>Ubuntu 12.04 (i386) </li><li>gcc 4.6.4 </li><li>Boost 1.54.0 </li></ul> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9648 Trac 1.4.3 Adam Romanek <romanek.adam@…> Tue, 11 Feb 2014 07:42:49 GMT attachment set https://svn.boost.org/trac10/ticket/9648 https://svn.boost.org/trac10/ticket/9648 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_container_string_assign_optimization.patch</span> </li> </ul> <p> fix proposal </p> Ticket Ion Gaztañaga Tue, 11 Feb 2014 14:07:46 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9648#comment:1 https://svn.boost.org/trac10/ticket/9648#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in develop branch, SHA-1: ba596fc83c4c8e565a32f728e6742dacb2b9d2fc </p> Ticket Adam Romanek <romanek.adam@…> Tue, 11 Feb 2014 14:27:39 GMT attachment set https://svn.boost.org/trac10/ticket/9648 https://svn.boost.org/trac10/ticket/9648 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_container_string_assign_optimization_v2.patch</span> </li> </ul> <p> fix proposal (v2) </p> Ticket