I developing android app which uses a lot of http requests to web service. At first, I was creating a new HttpClient instance before every request. To increase performance I try
I suspect the context switching is resulting in poor performance with the thread safe manager, and you should stop using it. I suppose you could compare the Apache client with the default Java client, but I don't think you are going to get much of a performance gain.
Personally, I've found the DOM XML parser to be a bit slow, so if you are using XML reformatiing it may help. Depending on your app you may be able to request items before you need them or use caching to create a better user expierence, but we would need to know more to give you meaningful advice.