Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supercharge Performance & Efficiency: Leveraging Promise.all for Resource-Friendly Tasks 🚤 #797

Closed

Conversation

sanjaiyan-dev
Copy link

Hi,

I believe this pull request has the potential to significantly improve performance and resource efficiency by leveraging Promise.all for parallel execution.

While not directly comparable, a similar pull request in Deno achieved a nearly 85% performance boost in their benchmarks. You can find the Deno PR here: [https://github.com/denoland/std/pull/3363].

Please let me know if you have any questions or feedback. I'm always happy to improve !

@blacha
Copy link
Member

blacha commented Dec 13, 2023

Hi @sanjaiyan-dev

While I appreciate the effort of trying to improve the performance here, Most of the time for this command is spent in the validation phase. Writing these files out at the end concurrently would not affect the overall performance of the command.

@blacha blacha closed this Dec 13, 2023
@sanjaiyan-dev sanjaiyan-dev deleted the sanjaiyan-async-concurrent branch December 13, 2023 20:57
@sanjaiyan-dev sanjaiyan-dev changed the title Supercharge Performance & Efficiency: Leveraging Promise.all for Resource-Friendly Tasks 🚤 Supercharge Performance & Efficiency: Leveraging Promise.all for Resource-Friendly Tasks 🚤 Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants