mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-05 19:31:56 +00:00
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:
1 parent
27ab23e7b1
commit
42abfcc5e7
1 file changed
+4
-2
@@ -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 ) {
|
||||
|
||||
Reference in new issue
Block a user