From a0451e4423e2f57c6fc25d033e965c3c7711034b Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Thu, 14 Mar 2024 15:32:39 -0700 Subject: [PATCH] Give radix tree setOldestVersion an extra 10 work per call It seemed to really be important for the skip list. I'm cargo culting this a little bit here. --- ConflictSet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 761d9d2..dde25fd 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -2369,6 +2369,9 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl { removalKey = {}; return; } + if (keyUpdates == 0) { + keyUpdates = 10; + } removalKeyArena = Arena(); removalKey = getSearchPath(removalKeyArena, n); } @@ -2394,7 +2397,7 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl { Arena removalKeyArena; std::span removalKey; - int64_t keyUpdates = 0; + int64_t keyUpdates = 10; Node *root; int64_t rootMaxVersion;