From 89cf17c96f1fe780a8aba62930411107ad2c7e59 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 29 Oct 2021 16:50:13 +0200 Subject: Use maximum zlib compression when generating editor translation headers With comments stripped, this reduces the combined generated translation size from 28.7 MB to 28.4 MB (-240 KB). --- modules/mono/build_scripts/make_android_mono_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/mono/build_scripts/make_android_mono_config.py b/modules/mono/build_scripts/make_android_mono_config.py index 28494bff6e..1920ef1c1a 100644 --- a/modules/mono/build_scripts/make_android_mono_config.py +++ b/modules/mono/build_scripts/make_android_mono_config.py @@ -8,7 +8,9 @@ def generate_compressed_config(config_src, output_dir): decompr_size = len(buf) import zlib - buf = zlib.compress(buf) + # Use maximum zlib compression level to further reduce file size + # (at the cost of initial build times). + buf = zlib.compress(buf, zlib.Z_BEST_COMPRESSION) compr_size = len(buf) bytes_seq_str = "" -- cgit v1.2.3