[IMP] fields: reduce the number of attributes on _column instances
authorRaphael Collet <rco@openerp.com>
Mon, 27 Oct 2014 13:08:08 +0000 (14:08 +0100)
committerRaphael Collet <rco@openerp.com>
Mon, 27 Oct 2014 13:36:09 +0000 (14:36 +0100)
commit7b1ef7085ab07da7a05240de773f1405fdcd1746
tree826da8fc6d849f3f09a41cba703f64f6aa7cfeda
parente9954cd9f903b247bd8f9fb66afa57d118e4ce7a
[IMP] fields: reduce the number of attributes on _column instances

This is a memory optimization: instead of setting all attributes on all
instances, set them with their default value on the class, and only set
specific ones on instances.  This reduces the memory footprint of around 14Mb
per registry with modules crm, sale, purchase and stock installed.
openerp/osv/fields.py