[Erp5-dev] WARNING - patch applied to ERP5Type

Jean-Paul Smets jp at nexedi.com
Thu Nov 15 11:06:17 CET 2007


Hi,

I have committed a big patch to ERP5Type. It has been tested
successfully against most unit tests some days ago. However, it may
still generate issues.
Please let me know if you encounter problems related to it.

Here is the notice:

This megapatch changes the way accessors are generated. Instead of
generating all accessors for each portal type, we only generate tuples
which are put in a kind of tuple cache. The idea is to minimise the
number of objects which are created and use objects which are as small
as possible. Then, the next time aq_dynamic is invoked, we dynamically
create a new accessor instance based on the parameters provided in the
tuple. This way, it is possible to reduce the memory footprint of ERP5
by 200 MB at least and create only those accessors which are needed.

In addition, accessors are now generated per portal_type and per class.
This way, if the class of a portal type changes in a system, different
accessors are generated and there is no risk of falling into a problem
of "first argument of method XXX must be of type YYY".

The downside is currently a possible speed decrease of 2-3% which must
confirmed and eventually adressed.

Regards,

JPS.


-- 
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
Nexedi: Consulting and Development of Libre / Open Source Software
http://www.nexedi.com
ERP5: Libre/ Open Source ERP Software for small and medium companies
http://www.erp5.org






More information about the Erp5-dev mailing list