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:
Roman Gershman 2025-05-08 12:25:54 +03:00 committed by GitHub
parent 4da180d0e9
commit 3fb1001470
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;