mirror of
https://github.com/facebook/zstd.git
synced 2025-10-17 00:07:08 -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 */
|
||||
|
||||
/* 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;
|
||||
*litPtr = iLitEnd; /* update for next sequence */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user