Display: Cloud | List
Most Popular Tags
Results (1 total) All > .net (x) > aviram (x)
unsafe Memory Fast Vs. loop copy Vs. .Net built in copy method (How to: Use Pointers to Copy an Array of Bytes (C#))
Based on the following code, the .Net method is the fastest.static void Main(string[] args) { DateTime before, after; const int Size1MB = 1024*1024; const int MegaBytesNum = 300; const int finalSize = Size1MB * MegaBytesNum; byte[] a = new byte[finalSize]; byte[] b = new byte[finalSize]; Console.WriteLine("Please wait while initializing source ar
Last modified by Aviram Preshel on 2/22/2010 7:05:54 AM
Tags:  .net  aviram  c#  copy  fast  loop  memory  preshel  unmanaged  unsafe
Page view tracker