mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-08 14:10:41 -06: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:
@@ -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