Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHH: Use usize and u64 better #486

Merged

Conversation

frankmcsherry
Copy link
Member

As reported in #479, rhh.rs too casually assumes that usize has 64 bits of representation. Chasing that down, we manipulate hashes, wired to be u64 inconsistently and this PR means to fix the most obvious forms of that. The new code has the potential to error at runtime if usize has more bits than u64, but I'm happy to make addressing that a problem for tomorrow.

The RHH code is also pre-production, and mostly we want to avoid bad habits and unblock folks with 32 bit usize platforms.

cc: @oli-w

@frankmcsherry frankmcsherry merged commit b0c8f2a into TimelyDataflow:master May 17, 2024
7 checks passed
@frankmcsherry frankmcsherry deleted the rhh_usize_correction branch May 17, 2024 12:44
This was referenced Oct 29, 2024
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.

1 participant