Hi, Actually, I like these kind of patches and would be happy to evaluate/commit them ;)
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Tim Funk [mailto:[EMAIL PROTECTED] >Sent: Friday, October 08, 2004 10:16 AM >To: Tomcat Users List >Subject: [OT] Re: AW: DefaultServlet > >removing dead code patches will probably be ignored in bugzilla. Typically >because we're too busy with such a patch. > >Your alternative code below is probably faster but drastically changes how >the code works. The original snippet allows for exceptions to be caught and >continue looping. Your alternative stops looping when an exception is >thrown. > >-Tim > >Steffen Heil wrote: > >> >> PS: Since I am already sending another mail, let me append a pending >> question: >> >> I often see code like this in the servlet: >> >> while (...) { >> try { >> ... >> } catch ( ... ) { >> ... >> } >> } >> >> which could be replaced with >> >> try { >> while (...) { >> ... >> } >> } catch ( ... ) { >> ... >> } >> >> which is faster in my imagination. >> Is there a reason or is my imagination false? > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]