mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #1410] Optimize FindMatchLengthWithLimit with RISC-V RVV vector instructions #2015
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/1410
Author: @Dayuxiaoshui
Created: 12/26/2025
Status: 🔄 Open
Base:
master← Head:master📝 Commits (1)
61e1877Optimize FindMatchLengthWithLimit with RISC-V RVV vector instructions📊 Changes
1 file changed (+53 additions, -1 deletions)
View changed files
📝
c/enc/find_match_length.h(+53 -1)📄 Description
Add RISC-V RVV optimized implementation of FindMatchLengthWithLimit function using vector instructions for 16-byte parallel comparison.
Performance improvements:
Implementation details:
The optimization is enabled when BROTLI_TARGET_RISCV_RVV is defined and runs on 64-bit little-endian targets. The original TZCNT64-based implementation remains available as a fallback.
Tested with GCC 12.3.1, -O3 -march=rv64gcv, 100 iterations.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.