Perf: parallize GC & build public

This commit is contained in:
SukkaW 2024-11-21 15:08:09 +08:00
parent 9299bc6838
commit 2eacf32180

View File

@ -114,9 +114,10 @@ process.on('unhandledRejection', (reason) => {
downloadMockAssetsPromise downloadMockAssetsPromise
]); ]);
await buildDeprecateFiles(rootSpan); await Promise.all([
await buildPublic(rootSpan); buildDeprecateFiles(rootSpan).then(() => buildPublic(rootSpan)),
await cacheGc(rootSpan); cacheGc(rootSpan)
]);
rootSpan.stop(); rootSpan.stop();