x
This commit is contained in:
parent
9f70f973ce
commit
259f68d9c4
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||||
let input = Path::new("./input");
|
let input = Path::new("./input");
|
||||||
let paths = iterator(input).collect::<Vec<PathBuf>>();
|
let paths = iterator(input).collect::<Vec<PathBuf>>();
|
||||||
|
|
||||||
let chunks = paths.chunks(paths.len() / 4 + paths.len() % 4);
|
let n_threads = 4;
|
||||||
|
let chunks = paths.chunks(paths.len() / n_threads + paths.len() % n_threads);
|
||||||
println!("threads: {}", chunks.len());
|
println!("threads: {}", chunks.len());
|
||||||
|
|
||||||
let (rx, threads) = {
|
let (rx, threads) = {
|
||||||
|
|
Loading…
Reference in a new issue