From 3393d13b67814c00251f7a06ee52a38d8380d9c2 Mon Sep 17 00:00:00 2001 From: Eladash <18193363+elad335@users.noreply.github.com> Date: Sun, 24 Mar 2024 15:26:44 +0200 Subject: [PATCH] Reduce compression level to 8 for faster compression --- rpcs3/util/serialization_ext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/util/serialization_ext.cpp b/rpcs3/util/serialization_ext.cpp index dced9ebc90..928cca8dd1 100644 --- a/rpcs3/util/serialization_ext.cpp +++ b/rpcs3/util/serialization_ext.cpp @@ -209,7 +209,7 @@ void compressed_serialization_file_handler::initialize(utils::serial& ar) } m_zs = {}; - ensure(deflateInit2(&m_zs, 9, Z_DEFLATED, 16 + 15, 9, Z_DEFAULT_STRATEGY) == Z_OK); + ensure(deflateInit2(&m_zs, ar.expect_little_data() ? 9 : 8, Z_DEFLATED, 16 + 15, 9, Z_DEFAULT_STRATEGY) == Z_OK); #ifndef _MSC_VER #pragma GCC diagnostic pop #endif