mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 21:07:43 +00:00
perf: avoid heap alloc
This commit is contained in:
parent
878f6cf939
commit
402b174842
1 changed files with 1 additions and 1 deletions
|
@ -481,7 +481,7 @@ impl<'bump, T: Rle, A: RleTreeTrait<T>> LeafNode<'bump, T, A> {
|
|||
}
|
||||
}
|
||||
|
||||
let mut new_children: Vec<_> = Vec::new();
|
||||
let mut new_children: SmallVec<[_; 64]> = SmallVec::new();
|
||||
let mut self_children = std::mem::replace(
|
||||
&mut self.children,
|
||||
<<A::Arena as Arena>::Vec<'bump, _> as VecTrait<_>>::with_capacity_in(
|
||||
|
|
Loading…
Reference in a new issue