From 42abfcc5e756eb5a2a481c0cea2104f062beafa2 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Sun, 14 Sep 2025 20:40:18 -0400 Subject: [PATCH] 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. --- src/backend/src/filesystem/hl_operations/hl_readdir.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/src/filesystem/hl_operations/hl_readdir.js b/src/backend/src/filesystem/hl_operations/hl_readdir.js index c325767a9..d2a6cc911 100644 --- a/src/backend/src/filesystem/hl_operations/hl_readdir.js +++ b/src/backend/src/filesystem/hl_operations/hl_readdir.js @@ -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 ) {