-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run more sync operations in parallel
Summary: ## This stack Track and down methods that are holding up the reactor and optimize them. ## This diff This code is loading both sides of a diff from blobstore concurrently is the right thing. In practice, most of the cost comes from the Thrift deserialization, which is synchronous. Worse, `try_join` does not yield back to Tokio. The combination means blocking the reactor for 150-200ms or even longer. With this diff we'll actually run them in parallel, saving both max poll time and quite likely wall clock time too. D66761433 optimized the same logic for unordered diffs. This has shown large benefits: https://fburl.com/scuba/mononoke_scs_server/veyjnzzp Reviewed By: singhsrb Differential Revision: D66961595 fbshipit-source-id: 6247ffedc1eff6e266bc365475aeff00fa8495a8
- Loading branch information
1 parent
7e39201
commit eed01da
Showing
2 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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