logoalt Hacker News

dwdzyesterday at 9:37 AM1 replyview on HN

It seems like Qt went from red-black tree to skip list in Qt4 and back to red-black tree in Qt5.


Replies

torginusyesterday at 2:11 PM

yeah it turns out that complex code, when its properly encapsulated and implemented in a bug-free manner, is not such a cost after all.

A correct skiplist is easier to NIH than a correct red-black tree (which for me was the final boss of the DS class in college), but has performance edge cases a red-black tree doesnt, if you treat it like a search tree.

show 1 reply