add buffer for file reading (#662)
This commit is contained in:
parent
0b1f3b1dcf
commit
eeaab21049
|
@ -354,6 +354,7 @@ impl ArtifactOutput for MinimalCombinedArtifacts {
|
||||||
|
|
||||||
fn read_cached_artifact(path: impl AsRef<Path>) -> Result<Self::Artifact> {
|
fn read_cached_artifact(path: impl AsRef<Path>) -> Result<Self::Artifact> {
|
||||||
let file = fs::File::open(path.as_ref())?;
|
let file = fs::File::open(path.as_ref())?;
|
||||||
|
let file = io::BufReader::new(file);
|
||||||
Ok(serde_json::from_reader(file)?)
|
Ok(serde_json::from_reader(file)?)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue