There are a lot of similar questions, but they all deal with server-side slowness - this is all about client-side issues.
1st call takes 900ms. 2nd call takes 20 ms.
I narrowed the slowness on the first call to serviceProxy.Method(). Fiddler reports that the actual time on the wire for the 1st call is 16 ms. Since the 2nd call is massively faster, I am forced to conclude the problem occurs with some WCF client-side instantiation code that fires when the first method call takes place.
Facts:
- The connection to the server occurs via wsHttpBinding
- The objects are encoded with the Protobufs.NET library by Marc Gravell
- Questions here on SO that do address client-side issues like mine recommend making the 1st call on a background thread to just get the slowness out of the way. However, that's addressing the symptoms, not the underlying cause.
Any ideas why the slowdown occurs on the 1st post?