Questions tagged «32bit-64bit»

与使用64位和32位体系结构有关的问题,包括可移植性问题。


4
编译32位和64位时性能差异巨大(快26倍)
我试图衡量访问值类型和引用类型列表时使用afor和a的区别foreach。 我使用以下类进行分析。 public static class Benchmarker { public static void Profile(string description, int iterations, Action func) { Console.Write(description); // Warm up func(); Stopwatch watch = new Stopwatch(); // Clean up GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); watch.Start(); for (int i = 0; i < iterations; i++) { func(); } watch.Stop(); Console.WriteLine(" average time: …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.