mirror of
https://github.com/google/brotli.git
synced 2026-09-22 22:56:08 +00:00
Unnecessary loop in BrotliWarmupBitReader
#548
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vax-r on GitHub (Sep 6, 2025).
Description
98a89b1563/c/dec/bit_reader.c (L49)In the code section mentioned above, no matter the return is exectued within loop or not, it's going to return
BROTLI_TRUE. Maybe we can consider remove the loop cause eventually it's going to be aBROTLI_TRUE.I would like to send a PR if that's the case, or we do have special concerns at this point so the loop is a must ?
@eustas commented on GitHub (Sep 10, 2025):
Loop is not unnecessary - it improves performance for some platforms. See comments around
aligned_read_maskandBROTLI_UNALIGNED_READ_FAST.@vax-r commented on GitHub (Sep 16, 2025):
I see, thank you !