From 393dd1e27dcb04f433ab8672e67d672435a24fc3 Mon Sep 17 00:00:00 2001 From: Valentin Balaschenko <13349202+vlntb@users.noreply.github.com> Date: Mon, 2 Jun 2025 19:20:13 +0100 Subject: [PATCH] half of hw threads --- include/xrpl/basics/partitioned_unordered_map.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/xrpl/basics/partitioned_unordered_map.h b/include/xrpl/basics/partitioned_unordered_map.h index 01bcb1a2f3..b855fec558 100644 --- a/include/xrpl/basics/partitioned_unordered_map.h +++ b/include/xrpl/basics/partitioned_unordered_map.h @@ -255,9 +255,10 @@ public: { // Set partitions to use half of the number of hardware threads if the // parameter is either empty or set to 0. - partitions_ = partitions && *partitions - ? *partitions - : std::size_t{std::thread::hardware_concurrency() / 2}; + partitions_ = std::size_t{std::thread::hardware_concurrency() / 2}; + // partitions && *partitions + // ? *partitions + // : std::size_t{std::thread::hardware_concurrency() / 2}; map_.resize(partitions_); XRPL_ASSERT( partitions_,