mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 03:32:35 +08:00
Skip chash computation in insert/emplace if the unconstrained hash matches.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@276549 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -130,4 +130,11 @@ inline std::vector<std::string> getReverseSortedStringInputs(size_t N) {
|
||||
return inputs;
|
||||
}
|
||||
|
||||
inline std::vector<const char*> getRandomCStringInputs(size_t N) {
|
||||
static std::vector<std::string> inputs = getRandomStringInputs(N);
|
||||
std::vector<const char*> cinputs;
|
||||
for (auto const& str : inputs)
|
||||
cinputs.push_back(str.c_str());
|
||||
return cinputs;
|
||||
}
|
||||
#endif // BENCHMARK_GENERATE_INPUT_HPP
|
||||
|
Reference in New Issue
Block a user