Unified · Split
| @@ -85,20 +85,15 @@ impl query::Engine { · 84 unmodified lines | ||
| 85 | 85 | .unwrap_or_default(); |
| 86 | 86 | let mut found = 0; |
| 87 | 87 | progress.show_throughput(start); |
| 88 | − let start = std::time::Instant::now(); | |
| 89 | − progress.init(Some(self.commits.len()), gix::progress::count("commits")); | |
| 90 | − progress.set_name("associate info"); | |
| 91 | 88 | for info in self |
| 92 | 89 | .commits |
| 93 | 90 | .iter() |
| 94 | − .inspect(|_| progress.inc()) | |
| 95 | 91 | .filter_map(|c| info.binary_search_by(|i| i.id.cmp(c)).ok().map(|idx| &info[idx])) |
| 96 | 92 | { |
| 97 | 93 | found += 1; |
| 98 | 94 | info.write_to(&mut out, &self.repo, &seen, max_diff_lines)?; |
| 99 | 95 | } |
| 100 | 96 | let missing = info.len() - found; |
| 101 | − progress.show_throughput(start); | |
| 102 | 97 | if missing > 0 { |
| 103 | 98 | writeln!( |
| 104 | 99 | out, |