You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/benchmarks
Aditya Kumar aa356d6b86 [locale] Avoid copy of __atoms when char_type is char
The function num_get<_CharT>::stage2_int_prep makes unnecessary copy of src
into atoms when char_type is char. This can be avoided by creating
a switch on type and just returning __src when char_type is char.

Added the test case to demonstrate performance improvement.
In order to avoid ABI incompatibilities, the changes are guarded
with a macro _LIBCPP_ABI_OPTIMIZED_LOCALE_NUM_GET

Differential Revision: https://reviews.llvm.org/D30268
Reviewed by: EricWF

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@305427 91177308-0d34-0410-b5e6-96231b3b80d8
9 years ago
..
CMakeLists.txt Emit benchmark tests into the benchmarks build directory, not lib/ 9 years ago
ContainerBenchmarks.hpp remove warnings from google-benchmarks in libcxx 9 years ago
GenerateInput.hpp Add start of filesystem benchmarks 9 years ago
algorithms.bench.cpp Update in-tree Google Benchmark to current ToT. 9 years ago
filesystem.bench.cpp Optimize filesystem::path by providing weaker exception guarantees. 9 years ago
string.bench.cpp improve performance of string::find 9 years ago
stringstream.bench.cpp [locale] Avoid copy of __atoms when char_type is char 9 years ago
unordered_set_operations.bench.cpp Update in-tree Google Benchmark to current ToT. 9 years ago
util_smartptr.bench.cpp Adding smart_ptr benchmark 9 years ago
vector_operations.bench.cpp Start adding benchmarks for vector 9 years ago