]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Increase the Zstandard compression level
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 11:45:10 +0000 (11:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 11:45:10 +0000 (11:45 +0000)
The data is actually really small and compresses well, so we can spend
some extra CPU cycles to save disk space and bandwidth.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/repo.c

index 0be69b29ff220819f544e449d32055f55b309035..2b9d8d0769140c61525713ef6be55b754d187db4 100644 (file)
@@ -1878,7 +1878,7 @@ static int pakfire_repo_write_database(struct pakfire_repo* repo, struct pakfire
        }
 
        // Initialize the output being compressed
-       f = pakfire_zstdfopen(f, "w");
+       f = pakfire_zstdfopen(f, "w19");
        if (!f) {
                ERROR(repo->ctx, "Could not initialize compression: %m\n");
                return 1;