[Mono-bugs] [Bug 594286] New: IList<int> is very slow compare to .net

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 7 05:10:11 EDT 2010


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

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


           Summary: IList<int> is very slow compare to .net
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          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: ---


Following code runs more than 10x slower on Mono

using System.Diagnostics;
using System.Collections.Generic;
using System;

class C
{
    public static void Main ()
    {
        IList<int> a = new int [1024 * 50];

        var sw = new Stopwatch ();
        sw.Start ();
        for (int ii = 0; ii < 1000; ++ii) {
            for (int i = 1; i < a.Count; ++i)
                a [i] = a [i - 1];
        }

        sw.Stop ();
        Console.WriteLine (sw.ElapsedMilliseconds);
        Console.WriteLine (a);
    }
}

-- 
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