]> git.ipfire.org Git - thirdparty/zstd.git/commit
[zstreamtest] Reduce memory of newapi tests
authorNick Terrell <terrelln@fb.com>
Thu, 27 Sep 2018 19:48:29 +0000 (12:48 -0700)
committerNick Terrell <terrelln@fb.com>
Thu, 27 Sep 2018 19:48:29 +0000 (12:48 -0700)
commitca0cfa3dbd5616a4497ea4aabb7fc45f490527e4
treecde6974e3f818353bdeb1dd91bff29d79a545b46
parent2a5cd8535abfc58ce8bc723382f0515efb8a11ad
[zstreamtest] Reduce memory of newapi tests

We could allocate up to 2^28 bytes of memory when using 2 threads with
window log = 24. Now, we limit it to 2^26 bytes of memory when not running
big tests.

I chose max window log = 22 since that is the maximum source size when
big tests are disabled. Hopefully this will be enough to reduce or
eliminate the test failures.
tests/zstreamtest.c