[General] Logging XML
rabegg
sagnad at googlemail.com
Wed Mar 16 10:20:33 CET 2011
Hi,
Looking at the source code of some components I can see poor diagnostic logging etiquette which will produce poor performance. For example, converting a DOM document into a string purely for logging purposes but not protecting the conversion with a isLoggable call. This means even if I don't have the necessary logging enabled the string conversion will be done every time. In some cases this is done within a loop, which compounds the problem even further (see org.ow2.petals.se.eip.patterns.DynamicRouter line 219).
Cheers,
Rich.
-------------------- m2f --------------------
Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=983#983
-------------------- m2f --------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/general/attachments/20110316/bf5ae902/attachment.htm>
More information about the General
mailing list