-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
I implemented this in ZFS’ btree implementation a few years ago:
https://github.com/openzfs/zfs/commit/677c6f8457943fe5b56d7a...
It only works if the comparator is inclined, which is why I had to use a macro and duplicate the code everywhere. C++’s templates effectively do the same thing.
-
Related repository of interest: https://github.com/scandum/binary_search
"The most notable variant, the monobound binary search, executes two to four times faster than the standard binary search on arrays smaller than 1 million 32 bit integers."
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.