-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change in the leaf search semaphore acquisition logic. (#3785)
Instead, of spawning N tasks and acquiring the semaphore within the tasks, we do the acquisition before spawning the task. This has two effect: - we end up running less tasks at a given time. - In presence of concurrent request, we should naturally acquire permits in bulks. In theory, the latter should decrease average latency. Ideally we should have some scheduler logic...
- Loading branch information
1 parent
ef9a31e
commit 04a6e4a
Showing
2 changed files
with
29 additions
and
23 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