>      public void service(Request req, Response res)
>          throws IOException, ServletException
>      {
> +      synchronized(this) {
>    if( ! initialized ) {
>        try {
>         init();
> @@ -271,6 +272,7 @@
>         return;
>        }
>    }
> +      }

This looks significant from a performance perspective.  Wouldn't it be
better if an _additional_ if (!initialized) were added prior to the
synchronized?

- Sam Ruby


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

Reply via email to