| @@ -35,9 +35,9 @@ impl index::File { · 34 unmodified lines |
| 35 | 35 | let state_per_thread = |index| { |
| 36 | 36 | ( |
| 37 | 37 | make_cache(), |
| 38 | | − Vec::with_capacity(2048), |
| 39 | | − Vec::with_capacity(2048), |
| 40 | | − reduce_progress.lock().unwrap().add_child(format!("thread {}", index)), |
| 38 | + Vec::with_capacity(2048), // decode buffer |
| 39 | + Vec::with_capacity(2048), // re-encode buffer |
| 40 | + reduce_progress.lock().unwrap().add_child(format!("thread {}", index)), // per thread progress |
| 41 | 41 | ) |
| 42 | 42 | }; |
| 43 | 43 | |
| @@ -46,9 +46,7 @@ impl index::File { · 2 unmodified lines |
| 46 | 46 | input_chunks, |
| 47 | 47 | thread_limit, |
| 48 | 48 | state_per_thread, |
| 49 | | − |entries: &[index::Entry], |
| 50 | | − (cache, buf, ref mut encode_buf, progress)| |
| 51 | | − -> Result<Vec<decode::Outcome>, Error> { |
| 49 | + |entries: &[index::Entry], (cache, buf, encode_buf, progress)| -> Result<Vec<decode::Outcome>, Error> { |
| 52 | 50 | progress.init(Some(entries.len() as u32), Some("entries")); |
| 53 | 51 | let mut stats = Vec::with_capacity(entries.len()); |
| 54 | 52 | let mut header_buf = [0u8; 64]; |