mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
Batch up calls that refresh the canvas CSS, size or annotations
These calls are UI render-related operations, and don't need to be done immediately after every operation. Batching these up and doing them all once after all ops are processed greatly improves the performance of paragraph alignment updates with multiple paragraphs selected.
This commit is contained in:
@@ -121,9 +121,7 @@ define([
|
||||
benchmark.actions.push(new RemovePositions(100, true));
|
||||
benchmark.actions.push(new SelectEntireDocument());
|
||||
benchmark.actions.push(new BoldCurrentSelection());
|
||||
if (config.includeSlow) {
|
||||
benchmark.actions.push(new AlignCurrentSelectionJustified());
|
||||
}
|
||||
benchmark.actions.push(new AlignCurrentSelectionJustified());
|
||||
benchmark.actions.push(new RemoveCurrentSelection());
|
||||
|
||||
this.start = benchmark.start;
|
||||
|
||||
Reference in New Issue
Block a user