Fixing performance degradation on Intel.

This commit is contained in:
Nicolas Patry 2024-10-21 14:45:19 +02:00
parent 7f54b7336a
commit 009c4e0b94
No known key found for this signature in database
GPG Key ID: D2920555C90F704C
1 changed files with 2 additions and 1 deletions

View File

@ -1263,7 +1263,7 @@ fn download_convert_model(
let download_stdout = BufReader::new(download_process.stdout.take().unwrap()); let download_stdout = BufReader::new(download_process.stdout.take().unwrap());
thread::spawn(move || { let t = thread::spawn(move || {
log_lines(download_stdout); log_lines(download_stdout);
}); });
@ -1305,6 +1305,7 @@ fn download_convert_model(
} }
sleep(Duration::from_millis(100)); sleep(Duration::from_millis(100));
} }
t.join().expect("Closing log reading thread");
Ok(()) Ok(())
} }