Avoid extra copies while assembling relocated TeX suffixes
This commit is contained in:
1 parent
5b9eca1d60
commit
5b86a7ac7e
5 files changed
+90
-38
No files matched your search
@@ -221,6 +221,8 @@ impl EntryCheckpoint {
|
||||
// The joined events are published results. Resumption always starts
|
||||
// from a live checkpoint, whose original shared allocations stay intact.
|
||||
let execution = measure(timings.map(|timings| &mut timings.suffix_assembly), || {
|
||||
let mut events = Vec::with_capacity(completed.events.len());
|
||||
events.extend(current.events.iter().cloned());
|
||||
let mut execution = Execution {
|
||||
format_dumped: completed.format_dumped,
|
||||
format_pdf_images: completed.format_pdf_images.clone(),
|
||||
@@ -229,7 +231,7 @@ impl EntryCheckpoint {
|
||||
native_page: completed.native_page.clone(),
|
||||
split_discards: completed.split_discards.clone(),
|
||||
after_assignment: completed.after_assignment.clone(),
|
||||
events: current.events.clone().into_vec(),
|
||||
events,
|
||||
state: completed.state.clone(),
|
||||
io: completed.io.clone(),
|
||||
input_position: completed.input_position,
|
||||
|
||||
Reference in new issue
Block a user