dolphin-emulator/Source
JosJuice 3feea108db DiscIO: Decrease RAM usage during zstd compression
By calling ZSTD_CCtx_setPledgedSrcSize, we can let zstd know
how large a chunk is going to be before which start compressing
it, which lets zstd avoid allocating more memory than needed
for various internal buffers. This greatly reduces the RAM usage
when using a high compression level with a small chunk size,
and doesn't have much of an effect in other circumstances.

A side effect of calling ZSTD_CCtx_setPledgedSrcSize is that
zstd by default will write the uncompressed size into the
compressed data stream as metadata. In order to save space,
and since the decompressed size can be figured out through
the structure of the RVZ format anyway, we disable writing
the uncompressed size by setting ZSTD_c_contentSizeFlag to 0.
2020-10-07 16:40:06 +02:00
..
Android Merge pull request #9112 from Ebola16/setmin 2020-09-27 17:36:05 +02:00
Core DiscIO: Decrease RAM usage during zstd compression 2020-10-07 16:40:06 +02:00
DSPSpy DSPSpy: sync Makefile with current devkitPro template 2020-06-08 04:21:41 +01:00
DSPTool msbuild: re-enable standalone vcxproj processing 2020-08-22 16:17:50 -07:00
PCH msbuild: re-enable standalone vcxproj processing 2020-08-22 16:17:50 -07:00
UnitTests x64Emitter: Check end of allocated space when emitting code. 2020-08-24 19:31:32 +02:00
VSProps Merge pull request #8765 from AdmiralCurtiss/jit-reuse-memory 2020-09-09 08:16:09 -04:00
.clang-format Require clang-format 9 and reformat source code 2020-01-08 22:18:15 +01:00
CMakeLists.txt Android: Add content provider support to File::IOFile 2020-09-16 18:38:53 +02:00
dolphin-emu.sln Externals: Add zstd 2020-05-13 20:53:10 +02:00