Re[2]: [Zope-CMF] Excessive time load when processing relations

Dieter Maurer dieter@handshake.de
Thu, 14 Nov 2002 19:54:58 +0100


Rainer Thaden writes:
 > DM>  > What's consuming the load? Is it waking up the objects?
 > DM> Use Zope's built in profiler to analyse situations like this:
 > 
 > DM>     Control_Panel --> Debug Information --> Profiling
 > 
 > O.K., tried that. It only listed the time the TAL-Interpreter needed.
 > I also tried the CallProfiler, which gave me an exception, when i
 > tried to activate File System Page Templates (Key Error: File System
 > Page Templates).
 > But i tracked it down and found that the tal:condition statement
 > caused the load in
 > 
 >             <a href="#"
 >                  tal:condition="autor"
 >                  tal:attributes="href autor/absolute_url"
 >                  tal:content="string:${autor/Nachname}, ${autor/Vorname}">Ketchup, Heinz
 >             </a>
 > 
 > I removed that and the time load shrinked from 7s to 1.5s.
Unbelievable!

  Are "autor" or "Nachname/Vorname" expensive in any way?


Dieter