liblzma: Creates separate "safe" range decoder mode.
commite446ab7a18abfde18f8d1cf02a914df72b1370e3
authorJia Tan <jiat0218@gmail.com>
Mon, 12 Feb 2024 15:09:10 +0000 (12 17:09 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 14 Feb 2024 16:31:16 +0000 (14 18:31 +0200)
tree9fe4636a1fa93454b71143159429a3f22b59d5bc
parent7f6d9ca329ff3e01d4b0be7366eb4f5c93da41b9
liblzma: Creates separate "safe" range decoder mode.

The new "safe" range decoder mode is the same as old range decoder, but
now the default behavior of the range decoder will not check if there is
enough input or output to complete the operation. When the buffers are
close to fully consumed, the "safe" operations must be used instead. This
will improve speed because it will reduce the number of branches needed
for most of the range decoder operations.
src/liblzma/lzma/lzma_decoder.c
src/liblzma/rangecoder/range_decoder.h