From e85f1ede2cbaff2ca73eec469111a434b4f166b5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 8 Oct 2021 22:18:36 +0200 Subject: runc: use buffered writer for archive write This should speed up both the actual file writing and the hashing. --- src/runner/runc/run.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/runner/runc/run.rs b/src/runner/runc/run.rs index f12e91f..76c8bc1 100644 --- a/src/runner/runc/run.rs +++ b/src/runner/runc/run.rs @@ -1,5 +1,6 @@ use std::{ collections::HashMap, + io::BufWriter, path::{Path, PathBuf}, process, }; @@ -166,8 +167,10 @@ fn collect_one_output(task: &runner::Task, path: &str) -> Result