Re: [Boost-bugs] [Boost C++ Libraries] #7494: boost::replace_all is very slow on debug build when Format size is big

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7494: boost::replace_all is very slow on debug build when Format size is big
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-17 19:25:59


#7494: boost::replace_all is very slow on debug build when Format size is big
-----------------------------------------------------+----------------------
  Reporter: Jan Vonasek <jan.vonasek@…> | Owner: marshall
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: string_algo
   Version: Boost 1.45.0 | Severity: Optimization
Resolution: | Keywords:
-----------------------------------------------------+----------------------

Comment (by Jan Vonasek <jan.vonasek@…>):

 Sample code:
 {{{
 std::wstring sInput = cca 20kB text (HTML template containing texts like
 "ImagePath1", "ImagePath2",...);
 std::wstring sFormat1 = cca 300kB text (base64 encoded image);
 boost::replace_all(sInput, L"ImagePath1", sFormat1);
 std::wstring sFormat2 = cca 300kB text (base64 encoded image);
 boost::replace_all(sInput, L"ImagePath2", sFormat2);
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7494#comment:4>
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:11 UTC