Generics Memory Usage

25 Nov 2007

The regular collection consumes 178 megs of ram, while the generics collection consumes 38 megs of ram (when running with Mono).

I was a bit shocked about the 178 megs of ram used by regular object wrappers, so I wrote the equivalent for Java, to see how they fared compared to Mono             

Java uses 248 megs of ram, so it is chubbier than regular C# at 30 bytes per boxed int on average (this was with Sun’s Java 1.6.0, maybe there are newer versions, but thats what I got on my system).

Miguel’s Blog

Another reason why people don’t use Java anymore.

Technorati tags: , , ,

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.