FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[v16.x backport] node-api: faster threadsafe_function by indutny · Pull Request #38547 · nodejs/node · GitHub

/ node Public

[v16.x backport] node-api: faster threadsafe_function - #38547

Closed
indutny wants to merge 1 commit into
nodejs:v16.x-stagingfrom
indutny:backport/gh-38506-into-16
Closed

[v16.x backport] node-api: faster threadsafe_function#38547
indutny wants to merge 1 commit into
nodejs:v16.x-stagingfrom
indutny:backport/gh-38506-into-16

Conversation

indutny commented May 5, 2021

Copy link
Copy Markdown
Member

Invoke threadsafe_function during the same tick and avoid marshalling
costs between threads and/or churning event loop if either:

  1. There's a queued call already
  2. Push() is called while the main thread was running
    threadsafe_function

PR-URL: #38506
Reviewed-By: Anna Henningsen anna@addaleax.net
Reviewed-By: Rich Trott rtrott@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com


Backport-PR-URL: #38506

Invoke threadsafe_function during the same tick and avoid marshalling
costs between threads and/or churning event loop if either:

1. There's a queued call already
2. `Push()` is called while the main thread was running
   threadsafe_function

PR-URL: nodejs#38506
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
indutny requested a review from addaleax May 5, 2021 07:24
github-actions Bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. v16.x labels May 5, 2021

targos commented May 5, 2021

Copy link
Copy Markdown
Member

Did you have to fix conflicts ? If not, we will cherry pick the commit by default when we prepare the next release

aduh95 changed the title node-api: faster threadsafe_function [v16.x backport] node-api: faster threadsafe_function May 5, 2021

indutny commented May 6, 2021

Copy link
Copy Markdown
Member Author

Ah, no conflicts. Closing then.

indutny closed this May 6, 2021
indutny deleted the backport/gh-38506-into-16 branch May 6, 2021 03:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL