News for hackers. Stuff that matters.
Re:1.5 is the midpoint between 0 and infinity in Ruby by lifthrasiir on Friday November 27, 2020 @05:25AM (#25227333)
It shouldn't be a problem but technically you are right that Ruby does one more comparison than needed. My guess is that it would mean to keep the previous value of mid (as in `bsearch_integer_range(prev_mid, mid, 0)` instead of the current `bsearch_integer_range(beg, mid, 0)`) and that might be annoying to do in C.

There are no comments on this comment yet.