You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tim Funk <fu...@joedog.org> on 2004/10/08 16:15:30 UTC

[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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org