On Sep 6, 2006, at 2:06 AM, Julien Anguenot wrote:
Hi,
Armand LEROUX wrote:
I am running basic performance tests on document creation factory
because document creation takes too much time.
Here is the famous point :
* My schema contains write expression. I whish to disable write
expression evaluation, measure creation time and compare them.
How many wrote expressions and doing what ? Why do you suspect them to
be responsible for that ?
Write expression are stored in CPSFields subclasses (CPSStringField,
CPSListField...)
"I think write expression evaluations are evaluated by
Datamodel.py". I
don't know yet what to alter to disable the write-expression
contained
in portal_schemas/my_schema/myField:write-expression
Which file should I alter to disable write expression calculus ?
Can somebody point me toward relevant links ?
Field.py : processValueBeforeWrite()
If I were you, I'd use ZopeProfiler for this (google it)
it's easy to filter results to know how much time is spent in this
method since you've got its name now :)
Besides, you can analyze your perf problem way outside of write
exprs, of course
Cheers,
---------
Georges Racinet Nuxeo SAS
[EMAIL PROTECTED] http://nuxeo.com
Tel: +33 (0) 1 40 33 71 73
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel