Skip to content

Returning an array from thread #99

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

Closed
dy opened this issue Apr 8, 2016 · 2 comments
Closed

Returning an array from thread #99

dy opened this issue Apr 8, 2016 · 2 comments

Comments

@dy
Copy link

dy commented Apr 8, 2016

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.

@dy dy changed the title Returning the result Returning an array from thread Apr 8, 2016
@dy
Copy link
Author

dy commented Apr 8, 2016

I guess it is related with #18

@audreyt
Copy link
Owner

audreyt commented May 22, 2016

It is indeed #18. One possible solution is #59 which would fix the issue — any help in looking how to revive that WIP very welcome.

@audreyt audreyt closed this as completed May 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants