-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] CellPlugin: Avoid useless UPDATE_CELL
The CellPlugin handler for "DELETE_CONTENT" will dispatch an UPDATE_CELL to empty its content regardless of the cell. On a big zone this can end up being quite costly as we pass for no reason in all the plugins and stores to apply 0 changes, it only adds some overhead. the allowDispatch of UPDATE_CELL handles this case but in this case it's a subcommand and the allowDispatch is bypassed. Benchmark ========= Measure of the execution time of `model.Dispatch` on a 26x100 cells sheet with **styled** cells. cells with content (formula or text) - before: 120~140ms - after: 120~140ms cells without content - before 120~140ms - 4~9ms closes #5283 Task: 4367772 Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
- Loading branch information
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters