]> git.ipfire.org Git - thirdparty/zstd.git/commit
Increase maximum window size 864/head
authorNick Terrell <terrelln@fb.com>
Fri, 22 Sep 2017 21:04:39 +0000 (14:04 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 26 Sep 2017 21:00:01 +0000 (14:00 -0700)
commitc233bdbaeef497a946256aeb6aff9fc108d4d2d7
tree633ddeaf25b7e129b08af82227f22a969163fcfd
parent8a4d0abc1c0eada60e1004a06850d4a82c7ceee3
Increase maximum window size

* Maximum window size in 32-bit mode is 1GB, since allocations for 2GB fail
  on my Mac.
* Maximum window size in 64-bit mode is 2GB, since that is the largest
  power of 2 that works with the overflow prevention.
* Allow `--long=windowLog` to set the window log, along with
  `--zstd=wlog=#`. These options also set the window size during
  decompression, but don't override `--memory=#` if it is set.
* Present a helpful error message when the window size is too large during
  decompression.
* The long range matcher defaults to a hash log 7 less than the window log,
  which keeps it at 20 for window log 27.
* Keep the default long range matcher window size and the default maximum
  window size at 27 for the API and CLI.
* Add tests that use the maximum window size and hash size for compression
  and decompression.
12 files changed:
lib/common/zstd_internal.h
lib/compress/zstd_compress.c
lib/compress/zstd_ldm.c
lib/compress/zstd_ldm.h
lib/decompress/zstd_decompress.c
lib/zstd.h
programs/fileio.c
programs/zstd.1
programs/zstd.1.md
programs/zstdcli.c
tests/playTests.sh
tests/zstreamtest.c