Merge pull request #1446 from ealmloff/deduplicate-hot-reload-cli

Deduplicate serve code with hot reloading in the CLI crate
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2023-09-16 11:55:16 -07:00
commit e59a05141e
5 files changed
+153 -296

No files matched your search

+1 -2
View File
@@ -583,8 +583,7 @@ impl<'b> VirtualDom {
}
// 4. Compute the LIS of this list
let mut lis_sequence = Vec::default();
lis_sequence.reserve(new_index_to_old_index.len());
let mut lis_sequence = Vec::with_capacity(new_index_to_old_index.len());
let mut predecessors = vec![0; new_index_to_old_index.len()];
let mut starts = vec![0; new_index_to_old_index.len()];