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

ZeroTriePerfectHash: Increase bounds of p for newly found hard case #4888

Merged
merged 4 commits into from May 11, 2024

Conversation

sffc
Copy link
Member

@sffc sffc commented May 10, 2024

I ran into this when experimenting with blob3 (#2699).

This might break the serialization form in the theoretical case (which I haven't seen) where p exceeds P_FAST_MAX, since the size of p determines whether the PHF uses the "fast" or "slow" algorithm. In all my cases I don't have data of p ever exceeding P_FAST_MAX, but it is possible that it could have occurred. I have changed the code now to remove the special case for p so that we can add it back again in the future if we discover a case that needs it.

@sffc sffc requested a review from a team as a code owner May 10, 2024 18:27
@sffc sffc merged commit 1ada2eb into unicode-org:main May 11, 2024
30 checks passed
@sffc sffc deleted the phf-bound branch May 11, 2024 18:44
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.

None yet

2 participants