Skip to content

In Hash impls, hash the Arc ptr instead of the ID - #30

Merged
ids1024 merged 1 commit into
masterfrom
hash
Jun 16, 2026
Merged

In Hash impls, hash the Arc ptr instead of the ID#30
ids1024 merged 1 commit into
masterfrom
hash

Conversation

@ids1024

@ids1024 ids1024 commented Jun 16, 2026

Copy link
Copy Markdown
Owner

This prevents (or strictly speaking, reduces) collisions between objects on different connections with the same ID.

This isn't really necessary as a bug fix because PartialEq already did the same pointer comparisons, and probably isn't meaningfully more efficient in reasonable use cases, but seems more correct.

This prevents (or strictly speaking, reduces) collisions between objects
on different connections with the same ID.

This isn't really necessary as a bug fix because `PartialEq` already did
the same pointer comparisons, and probably isn't meaningfully more
efficient in reasonable use cases, but seems more correct.
@ids1024
ids1024 merged commit d0766d2 into master Jun 16, 2026
6 checks passed
@ids1024
ids1024 deleted the hash branch June 16, 2026 21:35
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