3 ms·
.NET also has the TryStartNoGCRegion API, which allows you too prevent all GC collections (for a certain while). See http://mattwarren.org/2016/08/16/Preventin
by matthewwarren 10y ago
.NET also has the TryStartNoGCRegion API, which allows you too prevent all GC collections (for a certain while).
See http://mattwarren.org/2016/08/16/Preventing-dotNET-Garbage-Collections-with-the-TryStartNoGCRegion-API/ http://mattwarren.org/2016/08/16/Preventing-dotNET-Garbage-C... for the full details
- weberc2 10y agoYou can do this in Go as well: https://golang.org/pkg/runtime/debug/#SetGCPercent https://golang.org/pkg/runtime/debug/#SetGCPercent