This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Improve string::clear() performance
On Fri, Sep 23, 2016 at 10:25 AM, Jonathan Wakely <jwakely@redhat.com> wrote:
>
> I'm applying this patch, which is my one from 2014 with a check for
> whether the string is shared, so we just set the length to zero (and
> don't throw away reusable capacity) when it's not shared.
>
> Tested x86_64-linux, committed to trunk.
Great! Thanks for letting me know.