Skip to content

Commit

Permalink
feat: improve storage memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Dec 26, 2024
1 parent 14b4e50 commit 9400b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rspack_storage/src/pack/strategy/split/write_pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,11 @@ fn create(
new_packs
}

fn create_pack(dir: &Utf8Path, candiates: Vec<PackItemCandidate>) -> (PackFileMeta, Pack) {
fn create_pack(dir: &Utf8Path, candidates: Vec<PackItemCandidate>) -> (PackFileMeta, Pack) {
let mut keys = vec![];
let mut contents = vec![];
let mut generations = vec![];
for candidate in candiates {
for candidate in candidates {
keys.push(candidate.key);
contents.push(candidate.value);
generations.push(candidate.generation);
Expand Down

0 comments on commit 9400b68

Please sign in to comment.