[ Performance Improvement] Optimize generate Command Execution Speed
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
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?
- [x] I checked and didn't find a similar issue
🏢 Have you read the Contributing Guidelines?
- [x] I have read the Contributing Guidelines
Are you willing to work on this issue?
Yes I am willing to submit a PR!
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.
This is also a major task for gsoc project, we can consider this during that time
@AayushSaini101 Yes sir it is very big and I am working on it so can you help me in this.
This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience :heart: