mirror of
https://github.com/facebook/zstd.git
synced 2025-10-19 00:05:29 -04:00
slight decompression speed improvement
This commit is contained in:
parent
0cfe2ec2fd
commit
1bee2d5e08
@ -678,7 +678,9 @@ size_t ZSTD_execSequence(BYTE* op,
|
|||||||
if (iLitEnd > litLimit_w) return ERROR(corruption_detected); /* over-read beyond lit buffer */
|
if (iLitEnd > litLimit_w) return ERROR(corruption_detected); /* over-read beyond lit buffer */
|
||||||
|
|
||||||
/* copy Literals */
|
/* copy Literals */
|
||||||
ZSTD_wildcopy(op, *litPtr, sequence.litLength); /* note : since oLitEnd <= oend-WILDCOPY_OVERLENGTH, no risk of overwrite beyond oend */
|
ZSTD_copy8(op, *litPtr);
|
||||||
|
if (sequence.litLength > 8)
|
||||||
|
ZSTD_wildcopy(op+8, (*litPtr)+8, sequence.litLength - 8); /* note : since oLitEnd <= oend-WILDCOPY_OVERLENGTH, no risk of overwrite beyond oend */
|
||||||
op = oLitEnd;
|
op = oLitEnd;
|
||||||
*litPtr = iLitEnd; /* update for next sequence */
|
*litPtr = iLitEnd; /* update for next sequence */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user