mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
rewrite penalty update
suggested by @terrelln
This commit is contained in:
parent
1ec5f9f1f6
commit
16450d0732
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ static size_t ZSTD_splitBlock_byChunks(const void* src, size_t srcSize,
|
|||
return pos;
|
||||
} else {
|
||||
mergeEvents(&fpstats->pastEvents, &fpstats->newEvents);
|
||||
penalty = penalty - 1 + (penalty == 0);
|
||||
if (penalty > 0) penalty--;
|
||||
}
|
||||
}
|
||||
assert(pos == blockSizeMax);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue