Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] model: don't flatten command result
`array.flat()` is slow because it creates a new array (and allocates memory) With this commit, we only execute `array.flat()` if the command as been refused by one of the plugins (for possibly several resons) `checkDispatchAllowed` self-time could take up to 4% of the total time when loading a spreadsheet with lots of initial revisions. Now it's 0.0% :) closes #3190 X-original-commit: 4991b29 Signed-off-by: Rémi Rahir (rar) <[email protected]> Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
- Loading branch information