mirror of
https://github.com/facebook/zstd.git
synced 2025-10-08 00:04:02 -04:00
Give Up on Searching End of Block
Amusingly, it seems to be a non-trivial performance hit to add in final searches or even hash table insertions during cleanup. So let's not. It seems to not make any meaningful difference in compression ratio.
This commit is contained in:
parent
35932ab2f1
commit
7c24c3e6ce
@ -354,10 +354,9 @@ _start: /* Requires: ip0 */
|
|||||||
} while (ip2 < ilimit);
|
} while (ip2 < ilimit);
|
||||||
|
|
||||||
_cleanup:
|
_cleanup:
|
||||||
|
/* Note that there are probably still a couple positions we could search.
|
||||||
/* Find matches at end of block. */
|
* However, it seems to be a meaningful performance hit to try to search
|
||||||
|
* them. So let's not. */
|
||||||
/* TODO */
|
|
||||||
|
|
||||||
/* save reps for next block */
|
/* save reps for next block */
|
||||||
rep[0] = rep_offset1 ? rep_offset1 : offsetSaved;
|
rep[0] = rep_offset1 ? rep_offset1 : offsetSaved;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user