[Mono-bugs] [Bug 630636] New: Slow struct operations

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 12 04:24:14 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=630636

http://bugzilla.novell.com/show_bug.cgi?id=630636#c0


           Summary: Slow struct operations
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


using System; 
using System.Diagnostics;

public sealed class Program 
{
    struct S
    {
        long l;
    }

    public static void Main() 
    {
        Stopwatch sw;

        S[] i = new S [100000];

        sw = Stopwatch.StartNew();
        for (int nn = 0; nn < 10000; ++nn)
        for (int n = 0; n < i.Length; n++) 
        i [n] = new S ();

        Console.WriteLine(sw.Elapsed + "\tM");
        Console.WriteLine (i);
    }
}

I don't really know which part causes the slowdown but here the numbers

NET

00:00:01.3267627

Mono

00:00:06.0474786

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list