I just learned that if one adds

htttp://....../cocoon/....html?cocoon-showtime=true (or whatever)

then the Cocoon Servlet is adding the following line to the very end of the 
HTML, e.g.

<p>Processed by Apache Cocoon 2.1.6 in 30 milliseconds.</p>

It seems to me that the method calculating this string should only be called if 
actually needed:

if (getLogger().isInfoEnabled()) {
  processTime(end - start)


and

if (show) processTime(end - start)


because it saves some time within production envs, maybe just very little, but still...

WDYT?

Michi



--
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]



Reply via email to