Skip to content

Returning an array from thread #99

Closed
@dy

Description

@dy

Hi @audreyt!

I am trying to use webworker-threads within nogl-shader-output, and I observe that returning an array from the shader is the most time-consuming operation. It takes about 400ms on my laptop to return an array of 300×300 items.
I guess it happens because things get stringified on return.

Is there a fast way to return big data from a thread?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions