mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-02 02:59:51 +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>),
|
F: FnMut(&T, *mut LeafNode<'_, T, A>),
|
||||||
{
|
{
|
||||||
debug_assert!(self.is_root());
|
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) {
|
match self._delete(start, end, &mut zipper, 1, notify) {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
A::update_cache_internal(self);
|
A::update_cache_internal(self);
|
||||||
|
|
Loading…
Reference in a new issue