mirror of
https://github.com/lz4/lz4.git
synced 2024-12-04 07:15:29 +08:00
slight btopt speed improvement
removing a useless test
This commit is contained in:
parent
8bd32a17b1
commit
f513020a6d
@ -278,8 +278,8 @@ static int LZ4HC_compress_optimal (
|
||||
|
||||
mlen = 1;
|
||||
best_mlen = 0;
|
||||
if (cur > last_pos || price < (size_t)opt[cur].price)
|
||||
SET_PRICE(cur, mlen, best_mlen, litlen, price);
|
||||
if (price < (size_t)opt[cur].price)
|
||||
SET_PRICE(cur, mlen, best_mlen, litlen, price); /* note : increases last_pos */
|
||||
|
||||
if (cur == last_pos || inr >= mflimit) break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user