[IMP] fields: reuse column objects when possible, instead of recreating them
authorRaphael Collet <rco@openerp.com>
Wed, 22 Oct 2014 10:49:12 +0000 (12:49 +0200)
committerRaphael Collet <rco@openerp.com>
Wed, 22 Oct 2014 14:22:39 +0000 (16:22 +0200)
commit8e6d5beb356e7789854fea40be900233f197271e
tree293ebea656e58bf03c312abe65268006254d7361
parent575ea15518c70a8a3ddf1ff52c3a730c86b6a6f9
[IMP] fields: reuse column objects when possible, instead of recreating them

This is a memory optimization: it reduces the memory footprint of each
registry.  We have observed a reduction of 10Mb on a database with modules crm,
sale, purchase, stock.
openerp/fields.py
openerp/osv/fields.py