[*] Adjust comedically small compression chunk buffer size. I guess 64k for a compressor isn't so bad. I'm under the impression all compression libs buffer internally such that the external stream buffer does not matter - maybe this is overkill.

This commit is contained in:
Reece Wilson 2022-08-15 06:16:37 +01:00
parent cdb10eb3c6
commit 57d31e0212

View File

@ -9,7 +9,7 @@
namespace Aurora::Compression namespace Aurora::Compression
{ {
static const AuUInt64 kChunkSize = 4096; static const AuUInt64 kChunkSize = 32 * 1024;
/// * compression type + bits -> internal zlib windowBits /// * compression type + bits -> internal zlib windowBits
static bool CompressionLevelFromExternalApi(const DecompressInfo &info, AuInt8 &out) static bool CompressionLevelFromExternalApi(const DecompressInfo &info, AuInt8 &out)