[Mono-bugs] [Bug 65408][Wis] New - MBRO call performance

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 6 Sep 2004 19:01:54 -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=65408

--- shadow/65408	2004-09-06 19:01:54.000000000 -0400
+++ shadow/65408.tmp.14249	2004-09-06 19:01:54.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 65408
+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: MBRO call performance
+
+Consider the following test case:
+
+using System;
+using System.Threading;
+
+class X : MarshalByRefObject {
+	static void Main () {
+		AppDomain ad = AppDomain.CreateDomain ("MyFriendlyDomain");
+		
+		X x = (X) ad.CreateInstanceFromAndUnwrap ("t.exe", "X");
+		
+		for (int i = 0; i < 100000; i ++)
+			x.Foo (i);
+	}
+	
+	
+	void Foo (int x)
+	{
+	}
+}
+
+On my 900 mhz windows box using the 1.1 fx, this executes in 7 seconds. On
+the 2.0 fx, it executes in under a second. I had to control C the program
+with mono because it took so long. When I tried on x86-mono (a 2.8 GHz
+xeon) it took 13 seconds. Alot of these types of calls are used in xsp