Implement BackgroundGCPeriod

Tough decision to make, but I promised going for full performance, so there is that.
This commit is contained in:
JustArchi
2017-08-14 05:31:01 +02:00
parent 7fe0b4499b
commit c13fd10bd8
5 changed files with 13 additions and 10 deletions

View File

@@ -31,7 +31,6 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Resources;
using System.Runtime;
using System.Threading.Tasks;
using ArchiSteamFarm.Localization;
using NLog;
@@ -238,8 +237,8 @@ namespace ArchiSteamFarm {
return;
}
if (GCSettings.IsServerGC) {
Hacks.Init();
if (GlobalConfig.BackgroundGCPeriod > 0) {
Hacks.EnableBackgroundGC(GlobalConfig.BackgroundGCPeriod);
}
if (!string.IsNullOrEmpty(GlobalConfig.CurrentCulture)) {