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

[ Performance Improvement] Optimize generate Command Execution Speed #1703

Open
2 tasks done
Tanmayshi opened this issue Mar 8, 2025 · 2 comments
Open
2 tasks done
Labels
enhancement New feature or request gsoc This label shoudl be used for issues or discussions related to ideas for Google Summer of Code

Comments

@Tanmayshi
Copy link

Why do we need this improvement?

The asyncapi generate command takes significantly longer to execute, especially on the first run. Benchmarking shows that the first execution can take up to 58 seconds, while subsequent runs are much faster (~4-10s). This suggests potential inefficiencies in caching, dependency resolution, and processing.

How will this change help?

Reduce execution time for generate command, improving usability.
Improve caching strategies to prevent slow first-run execution.
Enhance dependency management for a more optimized installation.
Potential migration to Bun or pnpm to speed up package res

Screenshots

Image

How could it be implemented/designed?

✅ Profile command execution: Identify slow areas using benchmarking tools like Hyperfine.
✅ Optimize AsyncAPI processing: Investigate parallel execution, lazy loading, or caching.
✅ Improve dependency management: Reduce redundant dependencies & optimize imports.
✅ Explore Bun/pnpm migration: Evaluate if switching from npm to Bun or pnpm improves performance.

🚧 Breaking changes

No

👀 Have you checked for similar open issues?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue?

Yes I am willing to submit a PR!

@Tanmayshi Tanmayshi added the enhancement New feature or request label Mar 8, 2025
@github-project-automation github-project-automation bot moved this to To Triage in CLI - Kanban Mar 8, 2025
Copy link
Contributor

github-actions bot commented Mar 8, 2025

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@AayushSaini101 AayushSaini101 added the gsoc This label shoudl be used for issues or discussions related to ideas for Google Summer of Code label Mar 9, 2025
@AayushSaini101
Copy link
Collaborator

This is also a major task for gsoc project, we can consider this during that time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gsoc This label shoudl be used for issues or discussions related to ideas for Google Summer of Code
Projects
Status: To Triage
Development

No branches or pull requests

2 participants