0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 16:04:15 +01:00

ircd::db: Do our own default sharding calc based on request context contention.

This commit is contained in:
Jason Volk 2018-09-26 02:03:31 -07:00
parent 65f52b0610
commit da46a2ac48

View file

@ -2219,9 +2219,9 @@ noexcept
decltype(ircd::db::database::cache::DEFAULT_SHARD_BITS) decltype(ircd::db::database::cache::DEFAULT_SHARD_BITS)
ircd::db::database::cache::DEFAULT_SHARD_BITS ircd::db::database::cache::DEFAULT_SHARD_BITS
{ (
-1 std::min(std::log2(size_t(db::request_pool_size)), 8.0)
}; );
decltype(ircd::db::database::cache::DEFAULT_STRICT) decltype(ircd::db::database::cache::DEFAULT_STRICT)
ircd::db::database::cache::DEFAULT_STRICT ircd::db::database::cache::DEFAULT_STRICT