News for hackers. Stuff that matters.
Re:Span<T> in C# by n4r9 on Sunday November 19, 2017 @03:13AM (#15732856)
> handy looking stuff like the SustainedLowLatency GC mode

Don't forget "server mode" GC. I have a long-running, memory-intensive console app which was taking about 45 minutes to process a typical batch of data. With some profiling I discovered that after the 20 minute mark, most of the time was spent in GC. Some of the classic optimisations (classes to structs, new list to list.clear) helped get the processing down to 30 minutes. After some more Googling I discovered and tried server mode GC. Suddenly it took less than 13 minutes.

There are no comments on this comment yet.