[IMP] core: manage registries via an LRU.
authorChristophe Simonis <chs@odoo.com>
Wed, 29 Oct 2014 17:28:07 +0000 (18:28 +0100)
committerChristophe Simonis <chs@odoo.com>
Wed, 29 Oct 2014 17:28:07 +0000 (18:28 +0100)
commitcc4fba6089d3a65bb014d2aa33601668fca6f0bb
treeac1e9c877529250bdd3f1ea16a2c184c7efcb969
parent82588faa71e8da27d886ce8402841dc4985b95ff
[IMP] core: manage registries via an LRU.

When working with a large number of databases, the memory allocated to
registries wasn't limited, resulting to waste memory (especially in the
longpolling worker, which is not recycled).
The size of the LRU is depending on the soft limit configured for
workers.
openerp/modules/registry.py
openerp/tools/func.py