Files
odoo_source/odoo
Denis Ledoux 7c9a28d9c4 [IMP] base: specify fields to fields_get in view postprocessing
Thanks to
- odoo/odoo#87522
- odoo/odoo#87273

It's possible to speed-up the postprocessing of views
by only requesting a few attributes to `fields_get`,
therefore avoiding to load other costly attributes
(e.g. string, help, selection translations)

Before:
```
In [1]: %time for i in range(10000): env["res.partner"].get_views([(False, 'kanban'), (False, 'tree'), (False, 'form')]);env["base"].invalidate_cache()
r"CPU times: user 9min 19s, sys: 10.9 s, total: 9min 30s
Wall time: 10min 53s
```

After:
```
%time for i in range(10000): env["res.partner"].get_views([(False, 'kanban'), (False, 'tree'), (False, 'form')]);env["base"].invalidate_cache()
CPU times: user 6min 39s, sys: 11.5 s, total: 6min 50s
Wall time: 8min 14s
```

closes odoo/odoo#90168

Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2022-04-30 10:47:53 +02:00
..
2022-03-14 08:43:07 +00:00
…
2022-04-27 07:51:24 +02:00