cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wechner <michael.wech...@wyona.com>
Subject cocoon-showtime
Date Sat, 12 Feb 2005 23:34:13 GMT
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
michael.wechner@wyona.com                        michi@apache.org


Mime
View raw message