Skip to content

Feature: calculate indicator in a different thread #39

Description

@Vasile-Peste

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions