Issue 10491

Title
When a function field use another function field the latter is computed twice
Priority
feature
Status
in-progress
Nosy list
nicoe, reviewbot
Assigned to
nicoe
Keywords
review

Created on 2021-06-07.09:35:25 by nicoe, last changed 6 days ago by reviewbot.

Messages

Author: [hidden] (nicoe) Tryton committer
Date: 2021-06-07.09:35:24

It happens sometimes that a function fields depends on another function fields but that it's not manageable to use the names trick to compute them all at once. In order to have better performances it would be useful to prevent the recomputation of the "base" function fields when possible.

The attached patch does so by adding the concept of reading priority on function fields and by sharing the dictionary used for the local_cache when computing them.

History
Date User Action Args
2021-06-10 18:36:00reviewbotsetmessages: + msg68185
2021-06-09 11:29:49reviewbotsetmessages: + msg68165
2021-06-07 10:02:57reviewbotsetmessages: + msg68123
nosy: + reviewbot
2021-06-07 09:35:25nicoecreate

Showing 10 items. Show all history (warning: this could be VERY long)