Skip to content

Use BinaryDistinctString for consistent hashing on Linux and macOS - #418

Merged
pcuenca merged 1 commit into
mainfrom
linux-binary-distinct-vocab
Oct 29, 2026
Merged

pcuenca merged 1 commit into
mainfrom
linux-binary-distinct-vocab

Conversation

@pcuenca

@pcuenca pcuenca commented Oct 29, 2026

Copy link
Copy Markdown
Member

No description provided.

Comment on lines +104 to +105
// NSString equality and hashing disagree for some canonically equivalent strings on Linux.
// Preserve the exact vocabulary keys on every platform.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// NSString equality and hashing disagree for some canonically equivalent strings on Linux.
// Preserve the exact vocabulary keys on every platform.

@pcuenca

pcuenca commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

Loading performance appears to be slightly better according to my tests.

@pcuenca
pcuenca merged commit c5c58cc into main Oct 29, 2026
4 checks passed
@pcuenca
pcuenca deleted the linux-binary-distinct-vocab branch October 29, 2026 17:19
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