POC: formula dependencies safer#7755
Open
laa-odoo wants to merge 12 commits intomaster-use-cell-position-on-FunctionResultObject-laafrom
Open
POC: formula dependencies safer#7755laa-odoo wants to merge 12 commits intomaster-use-cell-position-on-FunctionResultObject-laafrom
laa-odoo wants to merge 12 commits intomaster-use-cell-position-on-FunctionResultObject-laafrom
Conversation
Collaborator
|
This PR targets the un-managed branch odoo/o-spreadsheet:master-use-cell-position-on-FunctionResultObject-laa, it needs to be retargeted before it can be merged. |
10a1b83 to
c9b6f71
Compare
92044ad to
3527247
Compare
Enabling the reuse of functions returning references as arguments in functions expecting references. Task: 5428577
This commit simplifies the code by removing the need for meta-concepts. Reference coordinates are now directly accessible from FunctionResultObject-typed arguments. Task: 5428577
Avoid to manualy update dependencies in the 'compute' functions. The work concerns all formulas except pivots, which will require a more precise analysis. Note that this is possible because, technically, we now register dependencies when we try to read a reference or range. Task: 5905722
…ssed Task: 5905722
c9b6f71 to
57c6b45
Compare
57c6b45 to
27fb508
Compare
When evaluating formulas, use virtual matrices rather than filling physical matrices to record the dependencies of the formulas that were actually used. Task: 5905722 makeLargeDataset(26, 10_000, ["formulas"]) evaluate all cells master-use-cell-position-on-FunctionResultObject-laa: Mean: 379.30 ms, StdErr: 5.74 ms, n=5 (-89%) 27fb508: Mean: 3380.92 ms, StdErr: 21.86 ms, n=5 START master-use-cell-position-on-FunctionResultObject-laa: Mean: 641.36 ms, StdErr: 6.07 ms, n=5 (-82%) 27fb508: Mean: 3643.81 ms, StdErr: 20.27 ms, n=5 Model created in master-use-cell-position-on-FunctionResultObject-laa: Mean: 3052.03 ms, StdErr: 13.94 ms, n=5 (-50%) 27fb508: Mean: 6046.85 ms, StdErr: 29.25 ms, n=5 Global master-use-cell-position-on-FunctionResultObject-laa: Mean: 3052.66 ms, StdErr: 13.97 ms, n=5 (-50%) 27fb508: Mean: 6047.52 ms, StdErr: 29.26 ms, n=5
makeLargeDataset(26, 10_000, ["formulas"]); evaluate all cells master-use-cell-position-on-FunctionResultObject-laa: Mean: 379.89 ms, StdErr: 9.99 ms, n=5 (-82%) master-ref-generalize-updateDependencies-laa: Mean: 2096.19 ms, StdErr: 9.40 ms, n=5 START master-use-cell-position-on-FunctionResultObject-laa: Mean: 647.46 ms, StdErr: 11.81 ms, n=5 (-73%) master-ref-generalize-updateDependencies-laa: Mean: 2361.34 ms, StdErr: 11.16 ms, n=5 Model created in master-use-cell-position-on-FunctionResultObject-laa: Mean: 3078.06 ms, StdErr: 35.44 ms, n=5 (-36%) master-ref-generalize-updateDependencies-laa: Mean: 4803.17 ms, StdErr: 21.11 ms, n=5 Global master-use-cell-position-on-FunctionResultObject-laa: Mean: 3078.63 ms, StdErr: 35.45 ms, n=5 (-36%) master-ref-generalize-updateDependencies-laa: Mean: 4803.93 ms, StdErr: 21.09 ms, n=5
27fb508 to
8d63752
Compare
makeLargeDataset(26, 10_000, ["formulas"]) evaluate all cells master-use-cell-position-on-FunctionResultObject-laa: Mean: 374.43 ms, StdErr: 4.91 ms, n=5 (-81%) master-ref-generalize-updateDependencies-laa: Mean: 2016.51 ms, StdErr: 61.64 ms, n=5 START master-use-cell-position-on-FunctionResultObject-laa: Mean: 633.84 ms, StdErr: 5.28 ms, n=5 (-72%) master-ref-generalize-updateDependencies-laa: Mean: 2278.81 ms, StdErr: 61.02 ms, n=5 Model created in master-use-cell-position-on-FunctionResultObject-laa: Mean: 3044.10 ms, StdErr: 6.79 ms, n=5 (-35%) master-ref-generalize-updateDependencies-laa: Mean: 4679.23 ms, StdErr: 68.48 ms, n=5 Global master-use-cell-position-on-FunctionResultObject-laa: Mean: 3044.70 ms, StdErr: 6.77 ms, n=5 (-35%) master-ref-generalize-updateDependencies-laa: Mean: 4679.98 ms, StdErr: 68.50 ms, n=5
makeLargeDataset(26, 10_000, ["formulas"]) evaluate all cells master-use-cell-position-on-FunctionResultObject-laa: Mean: 385.68 ms, StdErr: 6.09 ms, n=5 (-79%) master-ref-generalize-updateDependencies-laa: Mean: 1847.19 ms, StdErr: 9.75 ms, n=5 START master-use-cell-position-on-FunctionResultObject-laa: Mean: 652.61 ms, StdErr: 7.36 ms, n=5 (-69%) master-ref-generalize-updateDependencies-laa: Mean: 2114.91 ms, StdErr: 8.52 ms, n=5 Model created in master-use-cell-position-on-FunctionResultObject-laa: Mean: 3097.24 ms, StdErr: 13.64 ms, n=5 (-32%) master-ref-generalize-updateDependencies-laa: Mean: 4543.85 ms, StdErr: 14.14 ms, n=5 Global master-use-cell-position-on-FunctionResultObject-laa: Mean: 3097.85 ms, StdErr: 13.61 ms, n=5 (-32%) master-ref-generalize-updateDependencies-laa: Mean: 4544.53 ms, StdErr: 14.16 ms, n=5
makeLargeDataset(26, 10_000, ["formulas"]) evaluate all cells master-use-cell-position-on-FunctionResultObject-laa: Mean: 378.57 ms, StdErr: 3.19 ms, n=5 (-27%) master-ref-generalize-updateDependencies-laa: Mean: 516.58 ms, StdErr: 4.91 ms, n=5 START master-use-cell-position-on-FunctionResultObject-laa: Mean: 650.30 ms, StdErr: 6.07 ms, n=5 (-17%) master-ref-generalize-updateDependencies-laa: Mean: 779.60 ms, StdErr: 4.09 ms, n=5 Model created in master-use-cell-position-on-FunctionResultObject-laa: Mean: 3068.87 ms, StdErr: 16.02 ms, n=5 (-4%) master-ref-generalize-updateDependencies-laa: Mean: 3210.66 ms, StdErr: 6.76 ms, n=5 Global master-use-cell-position-on-FunctionResultObject-laa: Mean: 3069.50 ms, StdErr: 16.04 ms, n=5 (-4%) master-ref-generalize-updateDependencies-laa: Mean: 3211.27 ms, StdErr: 6.78 ms, n=5
c40325c to
017a9e4
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.