Fix performance on lower end computers

This commit is contained in:
Ender0001
2023-06-04 14:19:16 -04:00
committed by GitHub
parent b9ae9191db
commit b541afab42
+2 -2
View File
@@ -1,4 +1,4 @@
using Newtonsoft.Json;
using Newtonsoft.Json;
using System.IO.Compression;
using System.Net;
@@ -45,7 +45,7 @@ namespace EasyInstallerV2
if (!Directory.Exists(resultPath))
Directory.CreateDirectory(resultPath);
SemaphoreSlim semaphore = new SemaphoreSlim(12);
SemaphoreSlim semaphore = new SemaphoreSlim(Environment.ProcessorCount * 2);
await Task.WhenAll(manifest.Chunks.Select(async chunkedFile =>
{