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

worker: use _writev in internal communication #33454

Closed
wants to merge 1 commit into from

Conversation

addaleax
Copy link
Member

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the worker Issues and PRs related to Worker support. label May 18, 2020
@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@benjamingr benjamingr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM.

The only concern I have here is whether or not we can somehow pass too much data here by postMessageing all the chunks at once. Also am a bit disappointed we don't have a niftier API for pushing multiple things at once (like Array.prototype.push has).

@addaleax
Copy link
Member Author

The only concern I have here is whether or not we can somehow pass too much data here by postMessageing all the chunks at once.

It’s only going to postMessage() data that is already being queued up, so I don’t think the effect should be too noticable?

Also am a bit disappointed we don't have a niftier API for pushing multiple things at once (like Array.prototype.push has).

Not sure, are you referring to postMessage() here? So, sending multiple messages at once? I’m not sure that that would make a noticeable difference…

@addaleax addaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 18, 2020
@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented May 18, 2020

CI: https://ci.nodejs.org/job/node-test-pull-request/31388/ (:yellow_heart:)

addaleax added a commit that referenced this pull request May 20, 2020
PR-URL: #33454
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@addaleax
Copy link
Member Author

Landed in d2a6f06

@addaleax addaleax closed this May 20, 2020
@addaleax addaleax deleted the worker-writev branch May 20, 2020 10:37
codebytere pushed a commit that referenced this pull request Jun 18, 2020
PR-URL: #33454
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@codebytere codebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jul 6, 2020
PR-URL: #33454
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@codebytere codebytere mentioned this pull request Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. worker Issues and PRs related to Worker support.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants