This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81476] severe slow-down with range-v3 library compared to clang


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81476

--- Comment #8 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Yeah, the

  target.insert(target.cbegin(), ranges::begin(concatenated),
ranges::end(concatenated));

appears to cause a bad case of Schlemiel-The-Painter, for each inserted char
the tail of target is memmove'd by 1 byte to the right...

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]