r266164 - in /trunk/libstdc++-v3: ChangeLog scr...
redi@gcc.gnu.org
redi@gcc.gnu.org
Thu Nov 15 00:04:00 GMT 2018
Author: redi
Date: Thu Nov 15 00:04:19 2018
New Revision: 266164
URL: https://gcc.gnu.org/viewcvs?rev=266164&root=gcc&view=rev
Log:
Optimize pool resource allocation
A recent change caused a performance regression. This restores the
previous performance and adds a performance test.
* scripts/check_performance: Allow tests to choose a -std flag.
* src/c++17/memory_resource.cc (bitset::get_first_unset()): Use local
variables of the right types. Call update_next_word() unconditionally.
* testsuite/20_util/unsynchronized_pool_resource/cons.cc: New test.
* testsuite/performance/20_util/memory_resource/pools.cc: New test.
* testsuite/util/testsuite_performance.h (time_counter): Allow
timer to be restarted.
Added:
trunk/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/cons.cc
trunk/libstdc++-v3/testsuite/performance/20_util/
trunk/libstdc++-v3/testsuite/performance/20_util/memory_resource/
trunk/libstdc++-v3/testsuite/performance/20_util/memory_resource/pools.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/scripts/check_performance
trunk/libstdc++-v3/src/c++17/memory_resource.cc
trunk/libstdc++-v3/testsuite/util/testsuite_performance.h
More information about the Libstdc++-cvs
mailing list