[Mono-bugs] [Bug 52395][Wis] Changed - System.Buffer.BlockCopy is slower than System.Array.Copy

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 9 Jan 2004 12:08:26 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=52395

--- shadow/52395	2004-01-09 09:53:15.000000000 -0500
+++ shadow/52395.tmp.11577	2004-01-09 12:08:26.000000000 -0500
@@ -71,6 +71,10 @@
 ------- Additional Comments From vargaz@freemail.hu  2004-01-09 09:53 -------
 Actually, the two copy methods have the same performance, since each
 one uses memcpy. BlockCopy is slower because it contains three internal
 calls (for argument checking) while Array.Copy contains only one. If you
  change 128 to 1280 (so copying time dominates), the two methods have
 approx the same performance.
+
+------- Additional Comments From bmaurer@users.sf.net  2004-01-09 12:08 -------
+No, because Array.Copy must check arguments. BlockCopy only works 
+with primative structures, otherwise, it does not do any checks.