From 03e9034a9861d27930229f0d848b04b604210f85 Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Mon, 20 Jun 2022 03:00:53 +0200 Subject: [PATCH] Server: minify cmd json This saves between 7 and 15% where compression is unavailable. --- NetUtils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/NetUtils.py b/NetUtils.py index 17f7f65d..6cf3ab6d 100644 --- a/NetUtils.py +++ b/NetUtils.py @@ -96,6 +96,7 @@ def _scan_for_TypedTuples(obj: typing.Any) -> typing.Any: _encode = JSONEncoder( ensure_ascii=False, check_circular=False, + separators=(',', ':'), ).encode