Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PERF] helpers: reduce toZone memory allocation
On RNG' spreadsheet, this changes reduces memory allocation of `toZoneWithoutBoundaryChanges` by ~40Mb when loading the spreadsheet. It was ~93Mb before. Two changes: - avoid compiling a regexp every time - avoid useless array allocation when it's a single cell reference Each change accounts for ~20Mb saved. closes #4174 Task: 3915798 X-original-commit: cefa559 Signed-off-by: Rémi Rahir (rar) <rar@odoo.com> Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
- Loading branch information