Hacker News new | ask | show | jobs
by josephg 10 days ago
Yep. I’ve implemented b trees and skip lists a few times. I find skip lists to be a little easier to implement. But b trees seem to perform ~20% faster. I can’t think of any good reasons to use skip lists instead of b trees in high performance code.
1 comments

Well, avoiding locks is one reason, since lockfree skiplists are fairly simple but lockfree b-trees essentially don’t exist. Concurrent b-trees using locks are pretty well-understood though and perform well.