Auto merge of #16162 - sanjaiyan-dev:sanjaiyan-async-concurrent, r=lnicola
minor: Optimizing Performance with `Promise.all` 🏎 Hello, This pull request introduces a modest performance improvement by executing asynchronous tasks using `Promise.all`, thereby enhancing the efficient utilization of hardware resources. Thank you for considering this enhancement. Ref-: https://github.com/rust-lang/rust/pull/119108
This commit is contained in:
commit
831d0e01b3
@ -135,8 +135,10 @@ async function getDebugConfiguration(
|
|||||||
let sourceFileMap = debugOptions.sourceFileMap;
|
let sourceFileMap = debugOptions.sourceFileMap;
|
||||||
if (sourceFileMap === "auto") {
|
if (sourceFileMap === "auto") {
|
||||||
// let's try to use the default toolchain
|
// let's try to use the default toolchain
|
||||||
const commitHash = await getRustcId(wsFolder);
|
const [commitHash, sysroot] = await Promise.all([
|
||||||
const sysroot = await getSysroot(wsFolder);
|
getRustcId(wsFolder),
|
||||||
|
getSysroot(wsFolder),
|
||||||
|
]);
|
||||||
const rustlib = path.normalize(sysroot + "/lib/rustlib/src/rust");
|
const rustlib = path.normalize(sysroot + "/lib/rustlib/src/rust");
|
||||||
sourceFileMap = {};
|
sourceFileMap = {};
|
||||||
sourceFileMap[`/rustc/${commitHash}/`] = rustlib;
|
sourceFileMap[`/rustc/${commitHash}/`] = rustlib;
|
||||||
|
Loading…
Reference in New Issue
Block a user