Skip to content
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

Use transferrable objects for data transfer #23

Open
ddohler opened this issue Jun 5, 2018 · 0 comments
Open

Use transferrable objects for data transfer #23

ddohler opened this issue Jun 5, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@ddohler
Copy link
Collaborator

ddohler commented Jun 5, 2018

Using transferList in Worker.postMessage() will reduce memory usage and probably boost performance somewhat by allowing large byte arrays (which we deal with a lot) to be transferred between the worker and the main thread rather than copied.
https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage

@ddohler ddohler added the enhancement New feature or request label Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant