mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 12:57:20 +00:00
fix: reduce heap alloc
This commit is contained in:
parent
8cfe9f2772
commit
9c35aa266c
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ impl<'a, T: Rle, A: RleTreeTrait<T>> InternalNode<'a, T, A> {
|
|||
F: FnMut(&T, *mut LeafNode<'_, T, A>),
|
||||
{
|
||||
debug_assert!(self.is_root());
|
||||
let mut zipper = SmallVec::with_capacity(12);
|
||||
let mut zipper = SmallVec::new();
|
||||
match self._delete(start, end, &mut zipper, 1, notify) {
|
||||
Ok(_) => {
|
||||
A::update_cache_internal(self);
|
||||
|
|
Loading…
Reference in a new issue