Range reads are slow with dense keys

This commit is contained in:
2024-02-12 15:46:56 -08:00
parent f8acc5ee86
commit d5bde56921
2 changed files with 26 additions and 22 deletions
+1 -3
View File
@@ -894,9 +894,7 @@ bytes:
bool checkRangeRead(Node *n, const std::span<const uint8_t> begin,
const std::span<const uint8_t> end, int64_t readVersion,
Arena &arena) {
auto left = FirstGeqStepwise{n, begin};
while (!left.step())
;
auto left = firstGeq(n, begin);
#if DEBUG_VERBOSE && !defined(NDEBUG)
fprintf(stderr, "firstGeq for `%s' got `%s'\n", printable(begin).c_str(),