From 6c095314d0c49061f41e1e40be2625dfc2253afa Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 11 Jan 2022 21:24:28 -0800 Subject: [PATCH] v1.9 --- NEWS.md | 35 +++++++++++++++++++++++++++++++++++ libdeflate.h | 4 ++-- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 207c1bd9..c3940ab3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,40 @@ # libdeflate release notes +## Version 1.9 + +* Made many improvements to the compression algorithms, and rebalanced the + compression levels: + + * Heuristics were implemented which significantly improve the compression + ratio on data where short matches aren't useful, such as DNA sequencing + data. This applies to all compression levels, but primarily to levels 1-9. + + * Levels 1 was made much faster, though it often compresses slightly worse + than before (but still better than zlib). + + * Levels 8-9 were also made faster, though they often compress slightly worse + than before (but still better than zlib). On some data, levels 8-9 are much + faster and compress much better than before; this change addressed an issue + where levels 8-9 did poorly on certain files. The algorithm used by levels + 8-9 is now more similar to that of levels 6-7 than to that of levels 10-12. + + * Levels 2-3, 7, and 10-12 were strengthened slightly. + + * Levels 4-6 were also strengthened slightly, but some of this improvement was + traded off to speed them up slightly as well. + + * Levels 1-9 had their per-compressor memory usage greatly reduced. + + As always, compression ratios will vary depending on the input data, and + compression speeds will vary depending on the input data and target platform. + +* `make install` will now install a pkg-config file for libdeflate. + +* The Makefile now supports the `DISABLE_SHARED` parameter to disable building + the shared library. + +* Improved the Android build support in the Makefile. + ## Version 1.8 * Added `-t` (test) option to `libdeflate-gunzip`. diff --git a/libdeflate.h b/libdeflate.h index 2f305ba2..4c72ef95 100644 --- a/libdeflate.h +++ b/libdeflate.h @@ -10,8 +10,8 @@ extern "C" { #endif #define LIBDEFLATE_VERSION_MAJOR 1 -#define LIBDEFLATE_VERSION_MINOR 8 -#define LIBDEFLATE_VERSION_STRING "1.8" +#define LIBDEFLATE_VERSION_MINOR 9 +#define LIBDEFLATE_VERSION_STRING "1.9" #include #include