summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/TestModuleFileExtension.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-07-02 05:19:59 +0000
committerEric Fiselier <eric@efcs.ca>2016-07-02 05:19:59 +0000
commitf977598bb629afeb3f7cf591bd483f21adfab1a7 (patch)
tree99f39b6394216bc7c073ca62380246f31aa0bb84 /clang/lib/Frontend/TestModuleFileExtension.cpp
parent4f905b8daaf9826b91abe30fe8b5c5cd1ee7caa9 (diff)
downloadbcm5719-llvm-f977598bb629afeb3f7cf591bd483f21adfab1a7.tar.gz
bcm5719-llvm-f977598bb629afeb3f7cf591bd483f21adfab1a7.zip
Improve performance of unordered_set<uint32_t>::find by 45%. Add benchmarks.
This patch improves the performance of unordered_set's find by 45% when the value exists within the set. __hash_tables find method needs to check if it's reached the end of the bucket by constraining the hash of the current node and checking it against the bucket index. However constraining the hash is an expensive operations and it can be avoided if the two unconstrained hashes are equal. This patch applies that optimization. This patch also adds a top level directory called benchmarks. 'benchmarks/' is intended to store any/all benchmarks written for the standard library. Currently nothing is done with files under 'benchmarks/' but I would like to move towards introducing a formal format and test runner. llvm-svn: 274423
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud