[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



           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





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