Lessons from hash table merging
gist.github.com·1w·
🗄️Database Internals
Preview
Report Post

Lessons from Hash Table Merging

Merging two hash maps seems like a O(N) operation. However, while merging millions of keys, I encountered a massive >10x performance degradation. This post explores why some of the most popular libraries fall into this trap and how to fix it. The source code is available here.

The set up

I generated 3N random numbers with [splitmix64](ht…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help