summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/shootout2_cmap.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-04-16 18:33:24 +0200
committerTyge Løvset <[email protected]>2021-04-16 18:33:24 +0200
commit23ad1fbb91ef3cdddec7e54f3bde79082c2b0e24 (patch)
tree7f84fc3bc6ab3a8ef00f303a322018a0ebf5e93a /benchmarks/shootout2_cmap.cpp
parent6cbbac922e43e50bd29d72ea74df20c2ebe8ceba (diff)
downloadSTC-modified-23ad1fbb91ef3cdddec7e54f3bde79082c2b0e24.tar.gz
STC-modified-23ad1fbb91ef3cdddec7e54f3bde79082c2b0e24.zip
Replaced cmap/cset min_load_factor with shrink_to_fit() method.
Diffstat (limited to 'benchmarks/shootout2_cmap.cpp')
-rw-r--r--benchmarks/shootout2_cmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/shootout2_cmap.cpp b/benchmarks/shootout2_cmap.cpp
index cea7b6ec..7c1595f3 100644
--- a/benchmarks/shootout2_cmap.cpp
+++ b/benchmarks/shootout2_cmap.cpp
@@ -31,7 +31,7 @@ stc64_t rng;
#define CMAP_SETUP(X, Key, Value) cmap_##X map = cmap_##X##_init() \
- ; cmap_##X##_set_load_factors(&map, 0.0, max_load_factor)
+ ; cmap_##X##_max_load_factor(&map, max_load_factor)
#define CMAP_PUT(X, key, val) cmap_##X##_emplace_or_assign(&map, key, val).ref->second
#define CMAP_EMPLACE(X, key, val) cmap_##X##_emplace(&map, key, val).ref->second
#define CMAP_ERASE(X, key) cmap_##X##_erase(&map, key)