Le mer. 3 mai 2023 à 20:22, Jonathan Wakely a écrit :
>
>
> On Wed, 3 May 2023 at 03:17, Kefu Chai via Libstdc++ <
> libstd...@gcc.gnu.org> wrote:
>
>> Hi Jonathan,
>>
>> Thank you for your review and suggestion. The change looks great!
>> Assigning a value with an immediate zero is indeed much f
This patch always sets _M_string_length in the constructor specialized
for range of input_iterator, for the cases like istringstream.
We copy from source range to the local buffer, and then reallocate to
a larger one if necessary. When disposing the old buffer, the old buffer
could be provisioned
Hi Jonathan,
Thank you for your review and suggestion. The change looks great!
Assigning a value with an immediate zero is indeed much faster.
in v2:
* revised the commit message a little bit, I found it a little bit
difficult to parse when re-reading it.
* associated the commit with PR/libstd