[Mono-bugs] [Bug 690627] New: Dictionary/List memory usage

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 28 12:19:02 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=690627

https://bugzilla.novell.com/show_bug.cgi?id=690627#c0


           Summary: Dictionary/List memory usage
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gnorton at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


The following sample:


using System;
using System.Collections.Generic;

class Test {
    Dictionary <string, object> t;

    public Test () {
        t = new Dictionary <string, object>();
    }

    static void Main (string [] args) {
        long mem = GC.GetTotalMemory(true);
        List<Test> l = new List<Test>();
        for (int i = 0; i < 30000; i++)
            l.Add(new Test());
        mem = GC.GetTotalMemory(true) - mem;
        Console.WriteLine("MEM: {0}", mem);
    }
}


is: 

MEM: 11468800

on mono

MS.NET: 2051128

We need to look at why we're blowing up so much.

-- 
Configure bugmail: https://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