Use RVV byte comparisons and first-mismatch detection to find the
length of candidate matches in longest_match. Bound each vector load
by the remaining match length and retain the existing scalar paths
for non-RVV builds.

Compared with the unmodified gzip baseline:

Level    Original     Patched      Time reduction
-1       2.287 s      2.177 s       4.81%
-6       7.157 s      6.907 s       3.49%
-9      18.383 s     17.973 s       2.23%

Attachment: 0001-deflate-use-rvv-in-longest-match.patch
Description: Binary data

Reply via email to