forked from weaselab/conflict-set
Fix range_read_total counter
It was overcounting
This commit is contained in:
+2
-1
@@ -2649,7 +2649,6 @@ template <bool kAVX512>
|
||||
bool checkRangeReadImpl(Node *n, std::span<const uint8_t> begin,
|
||||
std::span<const uint8_t> end,
|
||||
InternalVersionT readVersion, ConflictSet::Impl *impl) {
|
||||
++range_read_accum;
|
||||
int lcp = longestCommonPrefix(begin.data(), end.data(),
|
||||
std::min(begin.size(), end.size()));
|
||||
if (lcp == int(begin.size()) && end.size() == begin.size() + 1 &&
|
||||
@@ -2661,6 +2660,8 @@ bool checkRangeReadImpl(Node *n, std::span<const uint8_t> begin,
|
||||
return checkPrefixRead(n, begin, readVersion, impl);
|
||||
}
|
||||
|
||||
++range_read_accum;
|
||||
|
||||
SearchStepWise search{n, begin.subspan(0, lcp)};
|
||||
Arena arena;
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user