mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #1144] [MERGED] Compare 4 bytes when checking if a longer match is possible. #1703
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/1144
Author: @copybara-service[bot]
Created: 3/17/2024
Status: ✅ Merged
Merged: 3/20/2024
Merged by: @undefined
Base:
master← Head:test_616445442📝 Commits (1)
9351fa7Compare 4 bytes when checking if a longer match is possible.📊 Changes
5 files changed (+34 additions, -6 deletions)
View changed files
📝
c/enc/hash.h(+9 -3)📝
c/enc/hash_forgetful_chain_inc.h(+8 -1)📝
c/enc/hash_longest_match64_inc.h(+8 -1)📝
c/enc/hash_longest_match_inc.h(+8 -1)📝
c/enc/hash_longest_match_quickly_inc.h(+1 -0)📄 Description
Compare 4 bytes when checking if a longer match is possible.
Loading and comparing 4 bytes is ~as fast as 1 byte, but allows us to avoid more full match length calculation.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.