Skip to content

Conversation

@bytemain
Copy link
Contributor

In the original code, using await inside each readFile call within Promise.all made them execute sequentially, negating the parallel execution benefit of Promise.all. The refactored version uses .then to parse JSON after readFile promises resolve, enabling all operations in Promise.all to run truly in parallel.

Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@bpasero bpasero added this to the April 2025 milestone Apr 27, 2025
@bpasero bpasero merged commit 29d5ffd into microsoft:main Apr 27, 2025
7 checks passed
btwiuse pushed a commit to btwiuse/vscode that referenced this pull request Apr 27, 2025
btwiuse pushed a commit to btwiuse/vscode that referenced this pull request Apr 27, 2025
btwiuse pushed a commit to btwiuse/vscode that referenced this pull request Apr 27, 2025
NikolaRHristov pushed a commit to CodeEditorLand/Editor that referenced this pull request Apr 30, 2025
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jun 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants