[PATCH] D41976: Low-hanging fruit optimization in string::__move_assign().

Timothy VanSlyke via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 13 08:23:12 PST 2018


tvanslyke added a comment.

I'll add that the reason I felt compelled to submit this change was because perf was saying most of my program, that only ever moved strings, was spending a majority of it's time in string::reserve() calls.  If for no other reason, I think it's confusing for people to see string::reserve getting called when all they wanted was a move assignment.


https://reviews.llvm.org/D41976





More information about the cfe-commits mailing list