[Mono-bugs] [Bug 59006][Wis] New - [perf] stelem.ref perf
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 24 May 2004 23:51:46 -0400 (EDT)
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=59006
--- shadow/59006 2004-05-24 23:51:46.000000000 -0400
+++ shadow/59006.tmp.15929 2004-05-24 23:51:46.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 59006
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [perf] stelem.ref perf
+
+Our performance on the following test case is 7x worse than MS.NET
+
+using System;
+
+class T {
+ static void Main () {
+ object [] o = new object [50];
+ object oo = new object ();
+ A (o, oo);
+
+ }
+
+ static void A (object [] o, object oo) {
+ if (oo == null)
+ A (o, oo);
+ for (int i = 0; i < 5000000; i ++)
+ o [1] = oo;
+ }
+}
+
+Also, when I removed the stelem.ref array type msismatch check, MCS
+bootstrap time improved by 6%.
+
+Part of the issue is the managed -> unmanaged transition. However, the
+other part is that the typecheck itself seems to be slow. When I skipped
+the LMF stuff, I was only 2x slower.