summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Evan Brown <ezb@google.com>2024-03-28 10:34:11 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2024-03-28 10:35:27 -0700
commit160d390608db56f11cbd29bd6b8938661dee525c (patch)
tree94a50a53880d0d7f78dd6db85697534a3e9b1a3e
parentc0f104bf3aca7001d8a549f5efe15f89ee99d050 (diff)
Roll forward: enable small object optimization in swisstable.
PiperOrigin-RevId: 619984581 Change-Id: I68fc9d6e9dd447bdccdbfd270073e11865f85965
-rw-r--r--absl/container/internal/hash_policy_traits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/container/internal/hash_policy_traits.h b/absl/container/internal/hash_policy_traits.h
index ec08794a..ad835d6f 100644
--- a/absl/container/internal/hash_policy_traits.h
+++ b/absl/container/internal/hash_policy_traits.h
@@ -168,7 +168,7 @@ struct hash_policy_traits : common_policy_traits<Policy> {
#endif
}
- // Whether small object optimization is enabled. False by default.
+ // Whether small object optimization is enabled. True by default.
static constexpr bool soo_enabled() { return soo_enabled_impl(Rank1{}); }
private:
@@ -197,7 +197,7 @@ struct hash_policy_traits : common_policy_traits<Policy> {
return P::soo_enabled();
}
- static constexpr bool soo_enabled_impl(Rank0) { return false; }
+ static constexpr bool soo_enabled_impl(Rank0) { return true; }
};
} // namespace container_internal