mirror of
https://github.com/google/brotli.git
synced 2026-09-23 23:24:59 +00:00
mode_generic & dictionary sharing #466
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 @AlexandrosEmvoliadis on GitHub (Jun 12, 2023).
Hey
When brotli.MODE_GENERIC is set to compression mode, in my understanding, there is no static dictionary involved in the encoding process.
How does the decompressor decodes the received information? Do they still share the same dictionary?
@eustas commented on GitHub (Jun 20, 2023):
Encoder and decoder have same "static" dictionary (see RFC).
Compression mode affects subtle internal compression params. There are 3 modes in API:
GENERICis default mode; if mode is not explicitly set, it is genericTEXTshould be better mode for UTF-8 plaintext; currently it is same as genericFONTis a special mode for WOFF2 font payloadsHopefully that answers your question.