mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
cityhash: replace invocations with specialized versions when possible
So that we can get actual benefit from last commit. Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Shengqi Chen <harry-chen@outlook.com> Closes #16131 Closes #16483
This commit is contained in:
committed by
Brian Behlendorf
parent
0ae4460c61
commit
a877b39624
@@ -132,7 +132,7 @@ static void
|
||||
rdt_insert(redup_table_t *rdt,
|
||||
uint64_t guid, uint64_t object, uint64_t offset, uint64_t stream_offset)
|
||||
{
|
||||
uint64_t ch = cityhash4(guid, object, offset, 0);
|
||||
uint64_t ch = cityhash3(guid, object, offset);
|
||||
uint64_t hashcode = BF64_GET(ch, 0, rdt->numhashbits);
|
||||
redup_entry_t **rdepp;
|
||||
|
||||
@@ -152,7 +152,7 @@ rdt_lookup(redup_table_t *rdt,
|
||||
uint64_t guid, uint64_t object, uint64_t offset,
|
||||
uint64_t *stream_offsetp)
|
||||
{
|
||||
uint64_t ch = cityhash4(guid, object, offset, 0);
|
||||
uint64_t ch = cityhash3(guid, object, offset);
|
||||
uint64_t hashcode = BF64_GET(ch, 0, rdt->numhashbits);
|
||||
|
||||
for (redup_entry_t *rde = rdt->redup_hash_array[hashcode];
|
||||
|
||||
Reference in New Issue
Block a user