Commit 160d3906 by Evan Brown Committed by Copybara-Service

Roll forward: enable small object optimization in swisstable.

PiperOrigin-RevId: 619984581
Change-Id: I68fc9d6e9dd447bdccdbfd270073e11865f85965
parent c0f104bf
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment