Skip to content

Commit d497765

Browse files
authored
Merge pull request #165 from colobrodo/comp-early-chunk-cleaning
Remove the temporary chunk files immediately after they are written
2 parents 08c9127 + 3e4147b commit d497765

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • webgraph/src/graphs/bvgraph/comp

webgraph/src/graphs/bvgraph/comp/impls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ impl BvCompConfig {
650650
graph_path.display()
651651
)
652652
})?;
653+
std::fs::remove_file(chunk_graph_path)?;
653654

654655
log::debug!(
655656
"Copying offsets {} [{}..{}) bits from {} to {}",
@@ -675,6 +676,7 @@ impl BvCompConfig {
675676
offsets_path.display()
676677
)
677678
})?;
679+
std::fs::remove_file(chunk_offsets_path)?;
678680

679681
copy_pl.update_with_count(last_node - first_node + 1);
680682
}

0 commit comments

Comments
 (0)