Michael Wechner wrote:
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?

Yepp, it's not that much but anyway it can be saved. I just applied a patch.


Thanks Carsten


-- Carsten Ziegeler - Open Source Group, S&N AG http://www.s-und-n.de http://www.osoco.org/weblogs/rael/

Reply via email to