Don't repeat common prefix search in addWriteRange
All checks were successful
Tests / Release [gcc] total: 423, passed: 423
GNU C Compiler (gcc) |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |0|0|0|0|:clap: Reference build: <a href="https://jenkins.weaselab.dev/job/weaselab/job/conflict-set/job/main/18//gcc">weaselab » conflict-set » main #18</a>
Tests / Coverage total: 421, passed: 421
weaselab/conflict-set/pipeline/head This commit looks good

This commit is contained in:
2024-02-18 10:43:41 -08:00
parent cb31f4c25b
commit 79390b806c

View File

@@ -1334,9 +1334,6 @@ void addWriteRange(Node *&root, int64_t oldestVersion,
int consumed = lcp - remaining.size();
consumed = 0;
useAsRoot = &root;
begin = begin.subspan(consumed, begin.size() - consumed);
end = end.subspan(consumed, end.size() - consumed);