Hi Xavier, > > I agree with u that those many if statements will clutter code. But a > > method call everytime is also expensive in terms of performance. So it > > is really a trade off between performance and > > Is the difference in performance really significative in a web > application? > > Without a benchmark, I would say that in a typical response there are > *lots* of method calls from the ones in your code passing through > Struts/Hibernate/etc. down to the Java library. Some of them > non-trivial as the ones regarding persistence. If the comparison was > going to be 1 versus 1.00000000000001 (if it is measurable at all) I > wouldn't see a real trade-off there. I think it's not the method calls, but the creation of the log messages that makes performance an issue. cf. http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/Log.html Of course, you have to measure to be sure about performance, ;)
Best regards, -- Shinobu Kawai -- Shinobu Kawai <[EMAIL PROTECTED], [EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]