From: Yann Collet Date: Sat, 18 Mar 2017 01:07:53 +0000 (-0700) Subject: slight btopt speed improvement X-Git-Tag: upstream/1.9.3~11^2~93^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f513020a6df8e1c8c51e03d849c8574f821b765b;p=platform%2Fupstream%2Flz4.git slight btopt speed improvement removing a useless test --- diff --git a/lib/lz4opt.h b/lib/lz4opt.h index f12468a..155b1fc 100644 --- a/lib/lz4opt.h +++ b/lib/lz4opt.h @@ -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;