From f5f5fb620be4e12521a58f6d007057156f3ebb15 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Mon, 12 Aug 2024 10:48:24 -0700 Subject: [PATCH] Run gc at 200% 150% pessimized the "real data" benchmark --- ConflictSet.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 32f9dfe..62b6fb9 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -3254,12 +3254,11 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl { } } - // Run gc at least 150% the rate we're inserting entries + // Run gc at least 200% the rate we're inserting entries keyUpdates += - (std::max( - tls.accum.entries_inserted - tls.accum.entries_erased, 0) * - 3) >> - 1; + std::max(tls.accum.entries_inserted - tls.accum.entries_erased, + 0) * + 2; memory_bytes.set(totalBytes); point_writes_total.add(tls.accum.point_writes);