I have C# code which takes x3 longer to execute on W2008R2 vs W7
the code is very simple (getting host name):
Stopwatch sw = new Stopwatch();
sw.Start();
IPHostEntry ip = Dns.Resolve(Dns.GetHostName());
string s = ip.HostName;
sw.Stop();
Console.WriteLine(sw.ElapsedTicks);
Console.WriteLine(s);
I did stop some services on W2008. May be I accidentally stopped something which helps to propagate DNS notifications or whatever...
Any thoughts?
EDIT: I am sorry I havent told. The x3 means: on W7 it takes <1ms and on W2008 it is either 2 or 9ms... It is not really about timing out.