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

Enhance Split Function Performance with Node.js Worker Threads for Parallel Processing #41

Open
florianbgt opened this issue Nov 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@florianbgt
Copy link
Member

Description:

The split function currently runs sequentially, impacting performance for larger projects. By leveraging Node.js Worker Threads, we can enable concurrent processing, significantly improving speed and efficiency.

Proposed Solution:

Refactor the split function to utilize Worker Threads, allowing parallel execution of splits.
Set the default number of threads to automatically detect the optimal number based on available system resources.
Add an option to override the default thread count through a CLI flag or configuration file setting.
Ensure robust error handling and logging for each worker to maintain visibility and traceability.
Expected Outcome:

Implementing parallel processing should lead to faster split operations, enhancing the CLI's performance, particularly when handling multiple endpoints or larger APIs. The ability to customize thread count provides flexibility for users to adjust performance according to their system’s capacity.

@florianbgt florianbgt moved this to TODO in napi development Nov 13, 2024
@florianbgt florianbgt added the enhancement New feature or request label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: TODO
Development

No branches or pull requests

1 participant