diff options
| author | Raphael Collet <rco@openerp.com> | 2016-01-27 18:00:48 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2016-01-29 09:37:27 +0100 |
| commit | f0646cb51b236a3afd5e7289f5cd5986c88da8f6 (patch) | |
| tree | 0358c6bbcdba40ef316d7094389f106ae1753b7d /addons/web/static/src/js/framework/session_instance.js | |
| parent | 6f4e7867f0a005b7588e16160765e23036ce7abc (diff) | |
[IMP] fields: use a "lazy" cursor to compute attribute `digits`
Borrowing a cursor each time you access `field.digits` may be costly, because
of the connection reset. Moreover, in most cases, the cursor is not used at
all, since the decimal precision are kept in cache.
For the installation of module `product` with its demo data, the number of
cursor allocations was reduced from ~1500 to about 50!
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions
