Skip to content

Commit 48203d1

Browse files
committed
Jumpier xan bisect
Related to #920
1 parent 6bad4ca commit 48203d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cmd/bisect.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,10 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
271271
// Is there enough space for next jump to make sense?
272272
let next_mid = (lo + hi) / 2;
273273

274-
if next_mid.abs_diff(mid) <= seeker.lookahead_len() * 2 {
274+
// NOTE: should we multiply lookahead len by 2?
275+
// The question is to balance the number of jumps vs.
276+
// the number of subsequent skips.
277+
if next_mid.abs_diff(mid) <= seeker.lookahead_len() {
275278
break;
276279
}
277280
}

0 commit comments

Comments
 (0)