[Mono-bugs] [Bug 316921] AssemblyQualifiedName is slow
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Aug 5 10:10:47 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=316921
User rkumpera at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=316921#c3
Rodrigo Kumpera <rkumpera at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rkumpera at novell.com
--- Comment #3 from Rodrigo Kumpera <rkumpera at novell.com> 2009-08-05 08:10:46 MDT ---
I'm trying this very simple benchmark that results in quite a lot of
AssemblyQualifiedName calls for each remoting call. My results are for a 5%
perf increase but my machine is too unsuited for benchmarking.
Can someone run it with and without the patch and report back the result?
using System;
using System.Threading;
public class Remote : MarshalByRefObject {
public void Ping (Remote rem, object payload) { rem.Pong (payload); }
public void Pong (object payload) { }
}
public class Driver {
public static void Main()
{
AppDomainSetup setup = new AppDomainSetup ();
setup.ApplicationBase = ".";
Console.WriteLine (AppDomain.CurrentDomain.FriendlyName);
AppDomain newDomain = AppDomain.CreateDomain ("NewDomain", null,
setup);
Remote rem = (Remote)newDomain.CreateInstanceAndUnwrap (typeof
(Remote).Assembly.FullName, "Remote");
Remote local = new Remote ();
for (int i = 0; i < 30000; ++i)
rem.Ping (local, i);
}
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list