Y
Hacker News
new
|
ask
|
show
|
jobs
by
yosh
5808 days ago
I've noticed that sorted sets have noticeably more overhead than the other types.
1 comments
subwindow
5808 days ago
If that's true, I wonder why. Maybe is they are trying to get O(1) access? Storing it the 'default' way would be O(log n) which isn't bad, but might still be unacceptable.
link
subwindow
5808 days ago
Ah, I found my answer. Sets are stored in both a skip list and a hash table. So the overhead is indeed high.
link