]> git.ipfire.org Git - thirdparty/zstd.git/commit
compress:check more bytes to reduce ZSTD_count call 3199/head
authorJun He <jun.he@arm.com>
Fri, 24 Jun 2022 09:07:06 +0000 (17:07 +0800)
committerJun He <jun.he@arm.com>
Sun, 18 Sep 2022 06:45:41 +0000 (14:45 +0800)
commitce52acd7dc7a7afc83433f0f2212942eb3160abb
treec9296bcc861841342a519295451f97ee47766505
parentcb6dc32635c9525d0cc8fd8332c07e150cf7572e
compress:check more bytes to reduce ZSTD_count call

Comparing 4B instead of comparing 1B in ZSTD_noDict
mode, thus it can avoid cases like match in match[ml]
but mismatch in match[ml-3]..match[ml-1]. So the call
count of ZSTD_count can be reduced.

Signed-off-by: Jun He <jun.he@arm.com>
Change-Id: I3449ea423d5c8e8344f75341f19a2d1643c703f6
lib/compress/zstd_lazy.c