The initial request to a jsp page takes the longest because it needs to
parse and compile the jsp page.  All subsequent requests are a lot faster
because the parsed and compiled jsp page is cached until the page is
modified.  So, yes page compilation does benefit performance.

On Mon, 15 Mar 1999, Rick Sanders wrote:

> > The tutorial says the dexios templates are compiled. I didn't read much
> > further than that. If it's the compilation you're worried about, jsp is
> > supposed to do the compilation only once for each page (until the a page
> > is modified).  I don't think this would take long.
>
> Maybe I'm mistaken, but I was under the impression that the
> compilation of pages is supposed to benefit performance.  Compiling
> each page once means that there isn't some servlet parsing
> HTML pages for every request.  I'm still learning the  technical
> side of servlets/JSP, but without page compilations, a servlet
> would have to interpret each page and use the Reflection API to
> interpret each page.  This presumably would be slower than
> just running a pre-compiled servlet that knows how to handle one
> task.
>
> Rick Sanders
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JSP-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

------------------------------------------------------------------------
Jim Tsang                               Phone: (510) 628-0100
Scientific Applications Specialist      Fax: (510) 628-0108
Pangea Systems Inc.                     email: [EMAIL PROTECTED]
1999 Harrison Street, Suite 1100        URL: http://www.panbio.com
Oakland, CA 94612
------------------------------------------------------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to