Reputation: 3641
I am calling a simple helloworld webservice from a mobile device windows mobile 6. I measured everything and everything is fast except this
return requestChannel.Request(msg);
This is slow.. I takes 300 - 380 ms!! Does anybody have an idea why this is so slow... XML desirialization/serialization is way faster than this..
Upvotes: 0
Views: 264
Reputation: 156524
I'm not a WCF expert by any means, but if I'm not mistaken the Request
method actually sends a request over the network, right?
Sending and receiving data over the network is about the slowest thing you can do in a computer program (short of asking the user for input, anyway). On a mobile device, speeds are likely to be even worse. I'd bet you're spending 99% of your time waiting for the request/response to complete and 1% of the time actually processing the response.
Short of improving the wireless data infrastructure in your client's city, the only thing you can really do to prevent this is to reduce the number of requests you make to services.
Upvotes: 1