[android-developers] How to optimize HTTPClient.execute(....) call?

2011-05-17 Thread singalashok
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

Re: [android-developers] How to optimize HTTPClient.execute(....) call?

2011-05-17 Thread Mark Murphy
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

Re: [android-developers] How to optimize HTTPClient.execute(....) call?

2011-05-17 Thread Miguel Morales
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

Re: [android-developers] How to optimize HTTPClient.execute(....) call?

2011-05-17 Thread Mark Murphy
On Tue, May 17, 2011 at 1:59 PM, Miguel Morales therevolti...@gmail.com wrote: Another thing I've noticed, and not sure what the issue is.  It's that HttpClient is much slower than HttpURLConnection. They have done some tuning on HttpURLConnection in recent releases of Android (at least

Re: [android-developers] How to optimize HTTPClient.execute(....) call?

2011-05-17 Thread Miguel Morales
Ah, thanks I wasn't aware of that. I'll check that out when I get a chance. Ashok, if you find anything useful, let us know ;-) On Tue, May 17, 2011 at 11:02 AM, Mark Murphy mmur...@commonsware.comwrote: On Tue, May 17, 2011 at 1:59 PM, Miguel Morales therevolti...@gmail.com wrote: Another