odoo/openerp/modules
Vo Minh Thu f668a123d9 [IMP] Reduce considerably the loading time of a new registry.
Loading time was mesured on the loading of a second database (identical to the
first one), i.e. by passing -d xx,yy on the command line, using cProfile. The
databases were installed with sale, mrp, and the crm.

The cProfile code is commited as part of this patch and should be removed (or
maybe guarded by some command-line flag) (just as the commenting-out of the
cron startup).

The patch was also applied on top of the trunk-simple-table-stats-vmt branch
which provides SQL queries counters.

Results indicate that the number of SQL queries are reduced from about 2100 to
27. Loading time is reduced from 1.3s to 0.26s (i.e. improved by 5).

Changes:

All calls to ir_model_fields to fetch manual (custom) fields are done in a
single call (prior to instanciate all models).

Checks for empty module descriptions are not done unless we are in init or
update mode. (The behavior was the opposite, which was probably a mistake).

Some calls to ir_translation, passing en_US because there was no lang in the
context, are not done anymore.

The improved time is also a result of a change in the decimal_precision module
where precision_get fetches all digits/applications instead of one at a time
(and thus implements its own caching instead of relying on
openerp.tools.ormache).

bzr revid: vmt@openerp.com-20121211105954-lwgs5js7yw3tzghs
2012-12-11 11:59:54 +01:00
..
__init__.py [ADD] test cases for export of simple fields 2012-07-23 17:03:06 +02:00
db.py [FIX] module: do not recreate categories when updating modules 2012-11-28 19:37:01 +01:00
graph.py [REV] reverted install-all commit (vmt@openerp.com-20121128142106-pdkcruhyz0sjltk8) 2012-11-29 15:07:45 +01:00
loading.py [IMP] Reduce considerably the loading time of a new registry. 2012-12-11 11:59:54 +01:00
migration.py [IMP] openerp.{modules,osv}: _logger with fully qualified module name. 2012-01-24 13:42:52 +01:00
module.py [IMP] cli first command testjs 2012-12-09 03:46:18 +01:00
registry.py misc 2012-12-09 20:05:43 +01:00