From 17d9c9bc222bd3d90040d14ad161a6219d332e7f Mon Sep 17 00:00:00 2001 From: Archi Date: Tue, 31 Jan 2023 22:19:41 +0100 Subject: [PATCH] Prefer maximum compression on compressed requests We have many clients and a single server, pushing additional work at the clients will typically degrade the effective speed with which the data can be transmitted, but will allow our server to handle more requests concurrently due to less bandwidth used, and will positively affect the bandwidth used for both server and the client. --- ArchiSteamFarm/Web/WebBrowserUtilities.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/Web/WebBrowserUtilities.cs b/ArchiSteamFarm/Web/WebBrowserUtilities.cs index a67c976b9..9b061ff9a 100644 --- a/ArchiSteamFarm/Web/WebBrowserUtilities.cs +++ b/ArchiSteamFarm/Web/WebBrowserUtilities.cs @@ -60,9 +60,9 @@ internal static class WebBrowserUtilities { ArgumentNullException.ThrowIfNull(output); #if NETFRAMEWORK - return (new GZipStream(output, CompressionLevel.Fastest, true), "gzip"); + return (new GZipStream(output, CompressionLevel.Optimal, true), "gzip"); #else - return (new BrotliStream(output, CompressionLevel.Fastest, true), "br"); + return (new BrotliStream(output, CompressionLevel.SmallestSize, true), "br"); #endif } }