Compare commits

...

2 Commits

Author SHA1 Message Date
Valentin Balaschenko
9ff39b6307 half of hw threads for sweep 2025-04-04 12:23:32 +01:00
Valentin Balaschenko
476a0bd1c7 make taggedcache size 1 2025-04-03 16:17:03 +01:00

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_,