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

Feature: calculate indicator in a different thread #39

Open
Vasile-Peste opened this issue May 22, 2023 · 0 comments
Open

Feature: calculate indicator in a different thread #39

Vasile-Peste opened this issue May 22, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Vasile-Peste
Copy link

Vasile-Peste commented May 22, 2023

To avoid blocking the main thread and improve performance, I would suggest optionally calculating each indicator in a separate worker thread.

This is an idea

const sma = new SMA(4, { useWorker: true, });

Reference
https://nodejs.org/api/worker_threads.html

@BusinessDuck BusinessDuck added the enhancement New feature or request label May 24, 2023
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

2 participants