Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(dev): 🔥 reduce ensure2 chunk map size #1707

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/mako/src/plugins/central_ensure.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::collections::BTreeMap;
use std::iter::once;
use std::sync::Arc;

use anyhow::anyhow;
Expand Down Expand Up @@ -32,8 +33,9 @@
.iter()
.for_each(|chunk| {
let deps_chunks = cg
.installable_descendants_chunk(&chunk.id)
.sync_dependencies_chunk(&chunk.id)

Check warning on line 36 in crates/mako/src/plugins/central_ensure.rs

View check run for this annotation

Codecov / codecov/patch

crates/mako/src/plugins/central_ensure.rs#L36

Added line #L36 was not covered by tests
stormslowly marked this conversation as resolved.
Show resolved Hide resolved
.iter()
.chain(once(&chunk.id))

Check warning on line 38 in crates/mako/src/plugins/central_ensure.rs

View check run for this annotation

Codecov / codecov/patch

crates/mako/src/plugins/central_ensure.rs#L38

Added line #L38 was not covered by tests
.map(|chunk_id| chunk_id.generate(context))
.collect::<Vec<_>>();

Expand Down
Loading