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

watchman: use single-threaded async runtime #2293

Merged
merged 1 commit into from
Sep 24, 2023
Merged

Conversation

martinvonz
Copy link
Member

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

The `#[tokio::main]` annotation uses a multi-threaded runtime by
default. We don't need that for querying watchman. Switching to the
single-threaded runtime saves about 20 ms.
@martinvonz martinvonz requested a review from arxanas September 24, 2023 21:22
@arxanas
Copy link
Collaborator

arxanas commented Sep 24, 2023

Nice!

@martinvonz martinvonz merged commit 9d8be29 into main Sep 24, 2023
15 checks passed
@martinvonz martinvonz deleted the push-qxmmmuorxopq branch September 24, 2023 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants