1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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).
This commit is contained in:
Hugo Locurcio
2021-10-29 16:50:13 +02:00
parent dae626ad64
commit 89cf17c96f
3 changed files with 12 additions and 4 deletions

View File

@@ -35,7 +35,9 @@ def make_certs_header(target, source, env):
decomp_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)
g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
g.write("#ifndef CERTS_COMPRESSED_GEN_H\n")