I am a little confused. getParameter() returns a String. What is it that is
taking so long compared to what other statements? request.getParameter()
should be pretty constant, although I suppose it depends on the
implementation of the servlet engine. I would think all parameters are
placed in an array or Hashmap and can be quickly retrieved. As for speeding
it up, the only way I think might be possible and its not guaranteed, is to
put the items in an order of the request so as the lookup time to the item
is not as long as other items. If the container uses an array than perhaps
they put the items in the array in the order they are coming in the request.
If its a HashMap, forget about it..there is no guarantee on the order they
are stored.



> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sukumar S
> Sent: Friday, September 14, 2001 7:16 AM
> To: [EMAIL PROTECTED]
> Subject: Performance of getParameter
>
>
> Hi,
>   request.getParameter() is taking more time.
> Could anyone tell the reason why request.getparameter is taking
> more time.
> The parameter we are getting is an XML payload. It may have some 8 to 10
> tags.
> It is taking more time compared to other statements.
> Is there any way to reduce the time taken to execute this statement.
> Thanks,
> Sukumar
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to