]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
minor display improvement in fuzzer when nb of tests is very large 438/head v1.1.1
authorYann Collet <cyan@fb.com>
Tue, 1 Nov 2016 18:13:22 +0000 (11:13 -0700)
committerYann Collet <cyan@fb.com>
Tue, 1 Nov 2016 18:13:22 +0000 (11:13 -0700)
NEWS
tests/fuzzer.c
tests/zstreamtest.c

diff --git a/NEWS b/NEWS
index 1b0c3d6c1dde8186773feba52346c1a694a7d92a..7710a07aa7e5b324afd8789b8ab4e1b5670f9ff4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,9 +2,10 @@ v1.1.1
 New : command -M#, --memory=, --memlimit=, --memlimit-decompress= to limit allowed memory consumption
 New : doc/zstd_manual.html, by Przemyslaw Skibinski
 Improved : slightly better compression ratio at --ultra levels (>= 20)
-Added : ZSTD_initCStream_usingCDict(), ZSTD_initDStream_usingDDict() (experimental section)
-Added : example/multiple_streaming_compression
-Changed : zstd_errors.h is now part of include installation
+Improved : better memory usage when using streaming compression API, thanks to @Rogier-5 report
+Added : API : ZSTD_initCStream_usingCDict(), ZSTD_initDStream_usingDDict() (experimental section)
+Added : example/multiple_streaming_compression.c
+Changed : zstd_errors.h is now installed within /include (and replaces errors_public.h)
 Updated man page
 Fixed : zstd-small, zstd-compress and zstd-decompress compilation targets
 
index 22f034d1385403ba10ce1eab9c917cf58f41ccdf..f8110498d4a2e8e6ea33605ee02180f91f52c7c8 100644 (file)
@@ -523,7 +523,7 @@ static int fuzzerTests(U32 seed, U32 nbTests, unsigned startTest, U32 const maxD
 
         /* notification */
         if (nbTests >= testNb) { DISPLAYUPDATE(2, "\r%6u/%6u    ", testNb, nbTests); }
-        else { DISPLAYUPDATE(2, "\r%6u      ", testNb); }
+        else { DISPLAYUPDATE(2, "\r%6u          ", testNb); }
 
         FUZ_rand(&coreSeed);
         { U32 const prime1 = 2654435761U; lseed = coreSeed ^ prime1; }
index 38b6a76cc6424be0c20e4536927f1e9521d97e65..aa119e636a1df636bc986e3a4f2ba684a9b342e5 100644 (file)
@@ -452,8 +452,8 @@ static int fuzzerTests(U32 seed, U32 nbTests, unsigned startTest, double compres
         size_t maxTestSize;
 
         /* init */
-        DISPLAYUPDATE(2, "\r%6u", testNb);
-        if (nbTests >= testNb) DISPLAYUPDATE(2, "/%6u   ", nbTests);
+        if (nbTests >= testNb) { DISPLAYUPDATE(2, "\r%6u/%6u    ", testNb, nbTests); }
+        else { DISPLAYUPDATE(2, "\r%6u          ", testNb); }
         FUZ_rand(&coreSeed);
         lseed = coreSeed ^ prime1;