17/04/12 19:51:51.86 QhQPiH2H.net
とりあえずWindowsマシン@4.6.2で色々試してみたら
[SuppressUnmanagedCodeSecurity, DllImport("kernel32")]
extern static void ZeroMemory(byte[] Destination, IntPtr Length);
[SuppressUnmanagedCodeSecurity, DllImport("msvcrt", CallingConvention = CallingConvention.Cdecl)]
extern static void memset(byte[] _Dst, int _Val, IntPtr _Size);
とかした方が雀の涙ほど速かった、CILだと
ldarg.0
ldc.i4.0
ldelema uint8
ldc.i4.0
ldarg.0
ldlen
initblk
あたりで漸く同等、しかも64bitに限った話、32bitだとどれも誤差レベル