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

Automatically determine number of CPUs #27

Closed
krisztianb opened this issue May 15, 2021 · 1 comment
Closed

Automatically determine number of CPUs #27

krisztianb opened this issue May 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@krisztianb
Copy link
Owner

The plugin has an option to specify the number of processes that should be used to generate the diagrams. This option can speed up the plugin dramatically but can easily be overlooked.

It would make sense to detect the number of CPUs available on the system and use that value as the default value for the option instead of defaulting to 1.

Here is how this could be done: https://stackoverflow.com/questions/26049013/node-js-get-number-of-processors-available/37871843

@krisztianb krisztianb added the enhancement New feature or request label May 15, 2021
@krisztianb
Copy link
Owner Author

Implemented in the 0.4 branch.

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
None yet
Development

No branches or pull requests

1 participant