Reputation: 20065
I would like to know if it's possible to optimize the .NET Garbage Collector using some options or properties like we can do with the Java JVM?
To add to this question, if it's possible, do you know a way to improve performance when most of the objects are stored in generation 0. The GC stats are the following :
number of times garbage collection 0 has occurred: 2601
number of times garbage collection 1 has occurred: 42
number of times garbage collection 2 has occurred: 41
Upvotes: 0
Views: 150
Reputation: 11101
You can try using a .config file to experiment with using the server GC and concurrent GC.
I doubt it will have a great impact on performance. If you have most objs in Gen0 that means your application is working as it should. If there are too many tiny objects, you may have been better served with a struct for some particular type, but that of course is a programmatic change.
Upvotes: 1