by ComputerGuru · 6y ago · 0 comments
I wrote this comparing the high-level performance of a “set” (AVL or red-black tree) against just that:
Faster lookups, insertions, and in-order traversal than a red-black or AVL tree [0]
[0]: https://neosmart.net/blog/2019/sorted-list-vs-binary-search-...
(Spoiler: it depends on the nature of your data, but sorted vector can be dramatically faster.)
My point is I care about the map or set interface. I don't use temporary sets or quicksort to sort....because I don't sort---I don't want a list/array of things in order, basically ever.