only half of hw threads

This commit is contained in:
Valentin Balaschenko
2025-05-21 14:42:50 +01:00
parent e514de76ed
commit c6c20ca671

View File

@@ -255,9 +255,10 @@ public:
{
// Set partitions to the number of hardware threads if the parameter
// is either empty or set to 0.
partitions_ = partitions && *partitions
? *partitions
: std::thread::hardware_concurrency();
partitions_ = std::size_t{std::thread::hardware_concurrency() / 2};
// partitions && *partitions
// ? *partitions
// : std::thread::hardware_concurrency();
map_.resize(partitions_);
XRPL_ASSERT(
partitions_,