Skip to content

RapidStreamHasherV3 implementation, test, and benchmarks#81

Merged
hoxxep merged 5 commits intomasterfrom
v3-hasher
Feb 16, 2026
Merged

RapidStreamHasherV3 implementation, test, and benchmarks#81
hoxxep merged 5 commits intomasterfrom
v3-hasher

Conversation

@hoxxep
Copy link
Owner

@hoxxep hoxxep commented Feb 11, 2026

This implements RapidStreamHasherV3 per #73, which is a stable Hasher-inspired interface for streaming but doesn't directly implement std::hash::Hasher due to hash portability/stability concerns. (Perhaps one day we'll finish PortableHash...)

I've also changed rapidhash_v3_file to use the RapidStreamHasherV3 to a nearly 2x throughput improvement, although the stream hasher is still around 2x faster in most cases due to the Read trait forcing us to copy into a local buffer.

A TODO(v5) is left to suggest a change to the rapidhash_v3_file_inline interface to support a BUFFER_SIZE parameter (or perhaps a runtime one).

@hoxxep hoxxep marked this pull request as draft February 11, 2026 00:57
@hoxxep hoxxep marked this pull request as ready for review February 13, 2026 01:13
@hoxxep hoxxep linked an issue Feb 13, 2026 that may be closed by this pull request
@hoxxep hoxxep merged commit 8b1e907 into master Feb 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stable and streaming variant

1 participant