Skip to content

Feature: calculate indicator in a different thread #39

@Vasile-Peste

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

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