llvm-project/libcxx/test
Vedant Kumar fb36d079e5 Low-hanging fruit optimization in string::__move_assign().
shrink_to_fit() ends up doing a lot work to get information that we
already know since we just called clear(). This change seems concise
enough to be worth the couple extra lines and my benchmarks show that it
is indeed a pretty decent win. It looks like the same thing is going on
twice in __copy_assign_alloc(), but I didn't want to go overboard since
this is my first contribution to llvm/libc++.

Patch by Timothy VanSlyke!

Differential Revision: https://reviews.llvm.org/D41976

llvm-svn: 327064
2018-03-08 21:15:26 +00:00
..
libcxx Low-hanging fruit optimization in string::__move_assign(). 2018-03-08 21:15:26 +00:00
std Include <system_error> since we use it. Thanks to Andrey Maksimov for the catch. 2018-03-07 22:51:16 +00:00
support libcxx: Provide overloads for basic_filebuf::open() et al that take wchar_t* filenames on Windows. 2018-01-23 02:07:27 +00:00
CMakeLists.txt Allow passing additional compiler/linker flags for the tests 2018-02-23 15:19:48 +00:00
lit.cfg Move libcxx/test/libcxx python package into libcxx/utils/libcxx. 2017-02-09 23:18:11 +00:00
lit.site.cfg.in Allow passing additional compiler/linker flags for the tests 2018-02-23 15:19:48 +00:00
nothing_to_do.pass.cpp Test commit: Reverting whitespace changes 2014-07-17 05:10:03 +00:00