-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hash table full occupancy bug (#647)
The existing hash table implementation relies on empty slots to terminate the probing sequence, leading to hangs when inserting into or querying a fully occupied hash table. This PR resolves the issue by tracking the initial slot index for each probing key and ensuring the probing sequence terminates upon looping through all slots and returning to the starting index. Benchmark tests confirm that this change has no performance impact on non-fully occupied hash tables.
- Loading branch information
1 parent
a4fb985
commit 681cf95
Showing
2 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters