3 ms·
If you are considering GC issues in an app, I think the reference code you should look at now is Roslyn and how it uses pooled ImmutableArrays to work with immu
by alkonaut 10y ago
If you are considering GC issues in an app, I think the reference code you should look at now is Roslyn and how it uses pooled ImmutableArrays to work with immutable collections almost without allocation overhead in most areas.
Most GC churn in most applications (I would think) is down to Linq and collection use.
https://github.com/dotnet/roslyn/blob/master/src/ExpressionEvaluator/Core/Source/ResultProvider/Helpers/ArrayBuilder.cs https://github.com/dotnet/roslyn/blob/master/src/ExpressionE...