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