I writing (or trying to) an app in c# .Net 4 all is working but two functions that make calls to the Internet are very slow the first time they are called!
XDocument xmlDoc = XDocument.Load(@"http://somedomain/somefile.xml");
this takes around 15-20 seconds the first time an about 1 the next!
I'm also using WebRequest
in another place to do an HTTP POST and I have the same issue when I hit that code!
I assume it's the time taken to load and initialise the assemblies!?
Any way to preload them? or a better way to access the net?