by hinkley · 2w ago · 0 comments
Some of his concurrency ideas were pretty good but Skip Lists were about the same time I was realizing that theoretical and practical design for performance had diverged and skip lists were a huge cache miss liability.
It didn't hurt that a few people I was aware had tried them had gone back to something else due to live performance analysis being negative or inconclusive (If you can't prove one thing is better than the other, you use the simpler one, and skiplists are not simple)
That cost varies from chip generation to generation, but it does seem to be the case that b trees win in more generations than they lose.
We don't like the O(n) worst case, but we really like that magical amortization property. There are some simple ways to avoid getting into a linear hot path.
One of the last large dev blog entries for V8 was about how they got pointer compression to be performance neutral and that’s down to getting the translation down below the amortized cache hit penalty for 64 bit pointers. IIRC the JVM gets close to that as well.
Can you please clarify: Simpler in operation or simple in implementation? Or neither/both?