?
Solved

In doGet() and doPost(), which is Fast?

Posted on 2009-06-27
2
Medium Priority
?
430 Views
Last Modified: 2013-11-24
In doGet() and doPost() methods ,which is the fastest method, and tell me why?
0
Comment
Question by:haneefnb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
Ravi Kalla earned 1500 total points
ID: 24728359
Theoretically, DoGet might be slightly faster if we set the response content length since the same connection is used - thus increasing the performance. DoPost is slower compared to doGet since doPost does not write the content length.

Also remember that the speed with which a servlet container responds to doGet and doPost mainly depends on how much data is submitted with the request and also on the statements your servlet methods contain. HTTP post forms are often designed to submit longer free-form text content. If any servlet request handler does a great deal of data retrieval, network communication and processing it will take longer to execute, regardless of the submission method.
0
 

Author Closing Comment

by:haneefnb
ID: 31597495
Thanks..
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question