Avoid an unnecessary node0 to node4 transition

This commit is contained in:
2024-03-12 11:44:58 -07:00
parent 71e117965e
commit 1496aa106b

View File

@@ -1729,7 +1729,8 @@ template <bool kBegin>
auto *old = *self;
int64_t oldMaxVersion = maxVersion(old, impl);
*self = allocators->node0.allocate(partialKeyIndex);
// *self will have one child
*self = allocators->node4.allocate(partialKeyIndex);
memcpy((char *)*self + kNodeCopyBegin, (char *)old + kNodeCopyBegin,
kNodeCopySize);