forked from mirrors/jj
watchman: use single-threaded async runtime
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.
This commit is contained in:
parent
ca6371ccde
commit
9d8be29d94
1 changed files with 1 additions and 1 deletions
|
@ -623,7 +623,7 @@ impl TreeState {
|
|||
}
|
||||
|
||||
#[cfg(feature = "watchman")]
|
||||
#[tokio::main]
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
#[instrument(skip(self))]
|
||||
pub async fn query_watchman(
|
||||
&self,
|
||||
|
|
Loading…
Reference in a new issue