[Boost-bugs] [Boost C++ Libraries] #9648: string construction optimization - std::char_traits::copy could be used to avoid char by char copying

Subject: [Boost-bugs] [Boost C++ Libraries] #9648: string construction optimization - std::char_traits::copy could be used to avoid char by char copying
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-10 09:06:58


#9648: string construction optimization - std::char_traits::copy could be used to
avoid char by char copying
-------------------------------------------+--------------------------
 Reporter: Adam Romanek <romanek.adam@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
  Version: Boost 1.54.0 | Severity: Optimization
 Keywords: |
-------------------------------------------+--------------------------
 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.

 Environment:
 - Ubuntu 12.04 (i386)
 - gcc 4.6.4
 - Boost 1.54.0

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9648>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC