Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Run Aqua VM in background #74

@coder11

Description

@coder11

Aqua VM interpreter runs on the main thread. It may cause performance problems noticeable to browser users. An incoming particle can potentially block the entire application UI and there is no mechanism to prevent that.

There should be an option to run particles' script interpretation in a separate thread using webworkers in browser and worker threads in nodejs.

The implementation should consider the following:

  1. The execution strategy should be configurable
  2. Both nodejs and browser should be supported with no difference to JS SDK consumers
  3. The code should be reused between nodejs and browsers as possible

This issue depends on the integration of the async AVM #73

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