mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
half of hw threads
This commit is contained in:
@@ -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_,
|
||||
|
||||
Reference in New Issue
Block a user