perf: huh, right... not sure how I missed that

These two async operations depend on fetchEntry, but they do not
depend on each other; they can be run in parallel.
This commit is contained in:
KernelDeimos
2025-09-14 20:40:18 -04:00
parent 27ab23e7b1
commit 42abfcc5e7

View File

@@ -94,8 +94,10 @@ class HLReadDir extends HLFilesystemOperation {
}
if ( ! no_assocs ) {
await child.fetchSuggestedApps(user);
await child.fetchSubdomains(user);
await Promise.all([
child.fetchSuggestedApps(user),
child.fetchSubdomains(user),
]);
}
const entry = await child.getSafeEntry();
if ( ! no_thumbs && entry.associated_app ) {