Skip to content

Commit

Permalink
Do not try to catch too far matches for clevel 1
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Mar 21, 2024
1 parent a5217c2 commit 93a422a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blosc/blosclz.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ int blosclz_compress(const int clevel, const void* input, int length,
// Minimum lengths for encoding (normally it is good to match the shift value)
unsigned minlen = 3;

uint8_t hashlog_[10] = {0, HASH_LOG - 1, HASH_LOG - 1, HASH_LOG, HASH_LOG,
uint8_t hashlog_[10] = {0, HASH_LOG - 2, HASH_LOG - 1, HASH_LOG, HASH_LOG,
HASH_LOG, HASH_LOG, HASH_LOG, HASH_LOG, HASH_LOG};
uint8_t hashlog = hashlog_[clevel];

Expand Down

0 comments on commit 93a422a

Please sign in to comment.