We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bad4ca commit 48203d1Copy full SHA for 48203d1
src/cmd/bisect.rs
@@ -271,7 +271,10 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
271
// Is there enough space for next jump to make sense?
272
let next_mid = (lo + hi) / 2;
273
274
- if next_mid.abs_diff(mid) <= seeker.lookahead_len() * 2 {
+ // 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() {
278
break;
279
}
280
0 commit comments