Garbage-Collection – DEVELOPPARADISE

DEVELOPPARADISE

.NET Performance Tip – Know Your Garbage Collection Options

.NET Performance Tip – Know Your Garbage Collection Options

An under-utilised setting that can offer substantial performance gains. 

Workstation GC – is what you’ll be getting by default with a .NET application and might be unaware of another option. It uses smaller segments, which means more frequent collections, which in turn are short, thus minimising application thread suspensions. When used with concurrent GC it is best suited for desktop / GUI applications. With concurrent disabled (all threads will suspend for GC) it uses a little less memory and is best suited for lightweight services on single-core machines, processing intermittently (appropriate use cases are few and far between). 

©2018 devepar.com