Avoid an unnecessary node0 to node4 transition
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user