diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2024-02-14 14:58:36 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2024-02-14 18:31:16 +0200 |
commit | 0668907ff736e4cd16738c10d39a2bc9e851aefb (patch) | |
tree | 0dfe725f1a8c94f69e39946f160afb5aedc249da /src/liblzma/lzma | |
parent | Scripts: Add lz4 support to xzgrep and xzdiff. (diff) | |
download | xz-0668907ff736e4cd16738c10d39a2bc9e851aefb.tar.xz |
liblzma: Add comments.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/lzma/lzma_decoder.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/liblzma/lzma/lzma_decoder.c b/src/liblzma/lzma/lzma_decoder.c index 6c9cbe22..58045e11 100644 --- a/src/liblzma/lzma/lzma_decoder.c +++ b/src/liblzma/lzma/lzma_decoder.c @@ -474,6 +474,15 @@ lzma_decode(void *coder_ptr, lzma_dict *restrict dictptr, // Variable number (1-5) of bits // from a reverse bittree. This // isn't worth manual unrolling. + // + // NOTE: Making one or many of the + // variables (probs, symbol, offset, + // or limit) local here (instead of + // using those declared outside the + // main loop) can affect code size + // and performance which isn't a + // surprise but it's not so clear + // what is the best. do { rc_bit_add_if_1(probs, rep0, offset); |