Re: [PATCH 2/2] console-client: Fix lower range of binary search

2015-06-05 Thread Justus Winter
Quoting Diego Nieto Cid (2015-06-05 03:58:10) > To prevent infinite recursion range checking was introduced > as an exit condition adding two extra comparisons on each > recursive call. > > By fixing the range used by the recursive call over the lower > half of the array one can avoid penalizing s

[PATCH 2/2] console-client: Fix lower range of binary search

2015-06-04 Thread Diego Nieto Cid
To prevent infinite recursion range checking was introduced as an exit condition adding two extra comparisons on each recursive call. By fixing the range used by the recursive call over the lower half of the array one can avoid penalizing successful lookups while still preventing infinite recursio