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

feat: use messaging object to pass message to workers #233

Merged
merged 3 commits into from
May 30, 2024

Conversation

edusperoni
Copy link
Collaborator

This is still a WIP. It uses a lot of node code to pass messages between the workers. This already allows us to pass 2 things we previously couldn't:

  1. SharedArrayBuffer
  2. circular objects

this PR will be complete once we're able to pass host objects as well, which will require some additional thought, as we might need to add more logic into the wrappers (like making the objects they hold shared_ptrs), so they can be released only when all are released. Since we're redesigning all our host objects logic for v8 v11.x, we might just delay this implementation

@cla-bot cla-bot bot added the cla: yes label Nov 22, 2023
@edusperoni edusperoni marked this pull request as ready for review May 30, 2024 19:02
@edusperoni edusperoni merged commit 7ded0c3 into main May 30, 2024
2 checks passed
@edusperoni edusperoni deleted the feat/better-worker-messaging branch May 30, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants