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.
This commit is contained in:
2024-03-14 15:32:39 -07:00
parent a9b3d3d1c9
commit a0451e4423

View File

@@ -2369,6 +2369,9 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
removalKey = {}; removalKey = {};
return; return;
} }
if (keyUpdates == 0) {
keyUpdates = 10;
}
removalKeyArena = Arena(); removalKeyArena = Arena();
removalKey = getSearchPath(removalKeyArena, n); removalKey = getSearchPath(removalKeyArena, n);
} }
@@ -2394,7 +2397,7 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
Arena removalKeyArena; Arena removalKeyArena;
std::span<const uint8_t> removalKey; std::span<const uint8_t> removalKey;
int64_t keyUpdates = 0; int64_t keyUpdates = 10;
Node *root; Node *root;
int64_t rootMaxVersion; int64_t rootMaxVersion;