diff options
author | Shengqi Chen <[email protected]> | 2024-09-07 22:07:14 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2024-09-19 15:19:17 -0700 |
commit | a877b396245eb40d8ccc4d0be6f3260e30a46053 (patch) | |
tree | b134be6cc4c0ed798354b6218dadf880640266f7 /cmd/zstream | |
parent | 0ae4460c61e2dc16203029344b083423b21eb755 (diff) |
cityhash: replace invocations with specialized versions when possible
So that we can get actual benefit from last commit.
Reviewed by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Tino Reichardt <[email protected]>
Signed-off-by: Shengqi Chen <[email protected]>
Closes #16131
Closes #16483
Diffstat (limited to 'cmd/zstream')
-rw-r--r-- | cmd/zstream/zstream_redup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/zstream/zstream_redup.c b/cmd/zstream/zstream_redup.c index dccd325d4..51266b0b6 100644 --- a/cmd/zstream/zstream_redup.c +++ b/cmd/zstream/zstream_redup.c @@ -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]; |