mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
Update src/core/compact_object.cc
Co-authored-by: Kostas Kyrimis <kostas@dragonflydb.io> Signed-off-by: Roman Gershman <romange@gmail.com>
This commit is contained in:
parent
4da180d0e9
commit
3fb1001470
1 changed files with 1 additions and 1 deletions
|
@ -1420,7 +1420,7 @@ void CompactObj::EncodeString(string_view str) {
|
|||
string_view encoded = str;
|
||||
bool huff_encoded = false;
|
||||
|
||||
// We chose such length that we can store the decoded lendth delta into 1 byte.
|
||||
// We chose such length that we can store the decoded length delta into 1 byte.
|
||||
// The maximum huffman compression is 1/8, so 288 / 8 = 36.
|
||||
// 288 - 36 = 252, which is smaller than 256.
|
||||
constexpr unsigned kMaxHuffLen = 288;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue