Skip to content

Commit

Permalink
v1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiggers committed Sep 16, 2023
1 parent 60f6af2 commit dd12ff2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# libdeflate release notes

## Version 1.19

* Added new functions `libdeflate_alloc_compressor_ex()` and
`libdeflate_alloc_decompressor_ex()`. These functions allow specifying a
custom memory allocator on a per-compressor basis.

* libdeflate now always generates Huffman codes with at least 2 codewords. This
fixes a compatibility issue where Windows Explorer's ZIP unpacker could not
decompress DEFLATE streams created by libdeflate. libdeflate's behavior was
allowed by the DEFLATE RFC, but not all software was okay with it. In rare
cases, compression ratios can be slightly reduced by this change.

* Disabled the use of some compiler intrinsics on MSVC versions where they don't
work correctly.

* libdeflate can now compress up to the exact size of the output buffer.

* Slightly improved compression performance at levels 1-9.

* Improved the compression ratio of very short inputs.

## Version 1.18

* Fixed a bug where the build type didn't default to "Release" when using
Expand Down
4 changes: 2 additions & 2 deletions libdeflate.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ extern "C" {
#endif

#define LIBDEFLATE_VERSION_MAJOR 1
#define LIBDEFLATE_VERSION_MINOR 18
#define LIBDEFLATE_VERSION_STRING "1.18"
#define LIBDEFLATE_VERSION_MINOR 19
#define LIBDEFLATE_VERSION_STRING "1.19"

/*
* Users of libdeflate.dll on Windows can define LIBDEFLATE_DLL to cause
Expand Down

0 comments on commit dd12ff2

Please sign in to comment.