Reduce compression level to 8 for faster compression

This commit is contained in:
Eladash 2024-03-24 15:26:44 +02:00 committed by Elad Ashkenazi
parent 1da7689526
commit 3393d13b67

View File

@ -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