Save a few instructions in SearchStepWise

This commit is contained in:
2024-02-22 15:30:24 -08:00
parent 7f5598af2b
commit 4c3e7aef30

View File

@@ -765,9 +765,8 @@ struct SearchStepWise {
if (remaining.size() == 0) { if (remaining.size() == 0) {
return true; return true;
} else { } else {
int c = getChildGeq(n, remaining[0]); auto *child = getChild(n, remaining[0]);
if (c == remaining[0]) { if (child != nullptr) {
auto *child = getChildExists(n, c);
int i = 0; int i = 0;
for (; i < child->partialKeyLen; ++i) { for (; i < child->partialKeyLen; ++i) {
if (!(i + 1 < int(remaining.size()) && if (!(i + 1 < int(remaining.size()) &&