Hi Gergely, Could you please provide more details on the performance paramters that will be improved when i use HttpClient?
Thanks. Ashok On May 18, 9:12 am, Gergely Juhász <[email protected]> wrote: > You can increase the performance if you reuse the same HttpClient object. > > On 18 May 2011 17:48, singalashok <[email protected]> wrote: > > > > > Hi Guys, > > > I am able to post data on the server using HTTPUrlConnection but found > > that it takes almost the same time when i used HTTPClient Class. > > > Thing is i am not sending large quantity of data. Its few 100 > > characters and i think it doesnt make sense to use compression to send > > this much data. > > > What do you think? It might be possible that the Server takes time to > > process the XML request and prepare the response? > > > Do you have any suggestions for me? > > > Please advice. > > > Thanks. > > Ashok > > > On May 17, 11:04 am, singalashok <[email protected]> wrote: > > > Thank you Guys. I really appreciate your quick response. > > > > You guys are doing a great job!!! > > > > BR, > > > Ashok > > > > On May 17, 10:59 am, Miguel Morales <[email protected]> wrote: > > > > > As Mark mentioned, first thing is add gzip/inflate support. > > > > I've come across this and skimmed some seconds using this. > > > > > Another thing I've noticed, and not sure what the issue is. It's that > > > > HttpClient is much slower than HttpURLConnection. > > > > > On Tue, May 17, 2011 at 10:53 AM, Mark Murphy <[email protected] > > >wrote: > > > > > > Get a faster Web server. Do more caching and such on the server. Use > > > > > If-Modified-Since and related caching headers. Send less data (up or > > > > > down). Use GZip compression (up and down). > > > > > > In other words, start with the techniques that have been used for the > > > > > past 10-15 years. > > > > > > On Tue, May 17, 2011 at 1:50 PM, singalashok <[email protected]> > > > > > wrote: > > > > > > Hi Friends, > > > > > > > My android app is trying to POST some XML data to the server using > > the > > > > > > following statement: > > > > > > > response = client.execute(uriReq); > > > > > > > I have only set the timeout parameters of the client and entity, > > > > > > content-type parameters of the Uri request. > > > > > > > Problem is that when the above statement is run, it takes from > > seconds > > > > > > to minutes depending upon the network coverage. My question: is > > there > > > > > > a way i can reduce the time it takes to execute this statement? > > > > > > > Because this will drastically increase the performance of my > > > > > > application. > > > > > > -- > > > > > Mark Murphy (a Commons Guy) > > > > >http://commonsware.com|http://github.com/commonsguy > > > > >http://commonsware.com/blog|http://twitter.com/commonsguy > > > > > > _Android Programming Tutorials_ Version 3.4 Available! > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > > Groups "Android Developers" group. > > > > > To post to this group, send email to > > [email protected] > > > > > To unsubscribe from this group, send email to > > > > > [email protected] > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/android-developers?hl=en > > > > > -- > > > > ~ Jeremiah:9:23-24 > > > > Android 2D MMORPG: > >http://solrpg.com/,http://www.youtube.com/user/revoltingx-Hidequoted text > > - > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text - > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

