Boost C++ Libraries: Ticket #11288: Redundant std::string allocations in filesystem error handling code https://svn.boost.org/trac10/ticket/11288 <p> During performance profiling of our product it was identified that many std::strings allocations are coming from filesystem error handling code. </p> <p> The error handling code dynamically allocates std::string instances to store error messages, however when non-throwing API is used the strings are just redundant. Unnecessary allocations can be easily avoided by passing in const char*. </p> <p> Please find the patch attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11288 Trac 1.4.3 anonymous Tue, 12 May 2015 12:42:32 GMT attachment set https://svn.boost.org/trac10/ticket/11288 https://svn.boost.org/trac10/ticket/11288 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">operations.cpp.patch</span> </li> </ul> <p> A patch to avoid redundant string allocations </p> Ticket Beman Dawes Sun, 30 Aug 2015 20:57:55 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11288#comment:1 https://svn.boost.org/trac10/ticket/11288#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> Patch pushed to develop branch. </p> <p> Will merge to master once enough regression tests have cycled. </p> <p> Thanks, </p> <p> --Beman </p> Ticket