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