On Aug 5, 2004, at 11:22, Aditya Athalye wrote:

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.

-- fxn


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to