projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bd32a1
)
slight btopt speed improvement
author
Yann Collet
<cyan@fb.com>
Sat, 18 Mar 2017 01:07:53 +0000
(18:07 -0700)
committer
Yann Collet
<cyan@fb.com>
Sat, 18 Mar 2017 01:07:53 +0000
(18:07 -0700)
removing a useless test
lib/lz4opt.h
patch
|
blob
|
history
diff --git
a/lib/lz4opt.h
b/lib/lz4opt.h
index
f12468a
..
155b1fc
100644
(file)
--- 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;