-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] evaluator: Prevent incorrect invalidation of spread
This commit solves an issue with the invalidation process of spreaded formulas. While marking the positions invalidated by a given position, we would mistakenly mark the latter to be recomputed as well, effectively creating an infinite loop (position is invalid > invalidate its dependencies > position is invalidated > etc ...). This issue was introduced by a bugfix in #3125 and was not discovered as the infinite loop is actually stopped by our maximum iteration limit. Avoiding these useless iterations implies a performance improvement of a factor 30 when reevaluating a spreaded formula. closes #4129 Task: 3883954 X-original-commit: 47bb1a9 Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com> Signed-off-by: Rémi Rahir (rar) <rar@odoo.com> Co-authored-by: Lucas Lefèvre <lul@odoo.com>
- Loading branch information
1 parent
bc831e3
commit 05fd37f
Showing
4 changed files
with
86 additions
and
7 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
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