We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d67a1b commit ffe880bCopy full SHA for ffe880b
src/toolchain/distributable.rs
@@ -134,6 +134,12 @@ impl<'a> DistributableToolchain<'a> {
134
components: &[&str],
135
targets: &[&str],
136
) -> anyhow::Result<bool> {
137
+ // Performance optimization: avoid loading the manifest (which can be expensive)
138
+ // if there are no components/targets to check.
139
+ if components.is_empty() && targets.is_empty() {
140
+ return Ok(true);
141
+ }
142
+
143
let manifestation = self.get_manifestation()?;
144
let manifest = manifestation.load_manifest()?;
145
let manifest = match manifest {
0 commit comments