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

signal-neon-futures: Only run Rust futures on an existing EventQueue #290

Merged
merged 1 commit into from May 7, 2021

Conversation

jrose-signal
Copy link
Contributor

Node can more efficiently handle multiple tasks coming in on the same queue*, so remove the "convenience" APIs that derive a new queue from a Context, and require an existing EventQueue instead. This cuts more time off of our decryption benchmark (not checked in).

Additionally, run the first poll for the future synchronously, to avoid having to wait for the event loop to pick up the task to start the future.

* or will be able to when nodejs/node#38506 is released

Node can more efficiently handle multiple tasks coming in on the same
queue, so remove the "convenience" APIs that derive a new queue from a
Context, and require an existing EventQueue instead. This cuts more
time off of our decryption benchmark (not checked in).

Additionally, run the first poll for the future synchronously, to
avoid having to wait for the event loop to pick up the task to start
the future.
@jrose-signal jrose-signal merged commit 108a571 into master May 7, 2021
@jrose-signal jrose-signal deleted the jrose/signal-neon-futures-limit-queues branch May 7, 2021 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants