Reuse allocations for decompression

This commit is contained in:
sfan5
2025-03-05 22:02:16 +01:00
parent 3c08380d18
commit 0a56b18cfb
6 changed files with 23 additions and 33 deletions

View File

@@ -23,6 +23,7 @@ private:
u8 m_version, m_contentWidth;
ustring m_mapData;
// one instance for performance
// cached allocations/instances for performance
ZstdDecompressor m_zstd_decompressor;
ustring m_scratch;
};