3 ms·
> 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
by n4r9 9y ago
> 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.