-
- Downloads
[FIX] web: improve editable list view rendering speed
The editable list view may be really new, but it still suffers from a performance issue. The problem is that we need to evaluate modifiers for a (sometimes) large number of fields: a list view with 80 rows and 7 columns has 560 field values. This is not so large, but each of these evaluation is still costly. In particular, it needs to compute the evaluation context. However, the evaluation context is the same between all fields of the same record, so in that case, the web framework does way too much work (with 7 columns, it is 7 times too much). This commit does not totally fix the issue, but it helps quite a lot. What we do is just memoize the evalcontext computation. This means that it will be evaluated only the first time it is needed, then will be kept in memory. Note that this is a fix, not an imp. The list view should be fast...
Showing
- addons/web/static/src/js/views/basic/basic_model.js 7 additions, 0 deletionsaddons/web/static/src/js/views/basic/basic_model.js
- addons/web/static/src/js/views/basic/basic_renderer.js 1 addition, 1 deletionaddons/web/static/src/js/views/basic/basic_renderer.js
- addons/web/static/src/js/views/kanban/kanban_record.js 1 addition, 1 deletionaddons/web/static/src/js/views/kanban/kanban_record.js
Loading
Please register or sign in to comment