-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shortcut callback execution if there are 1 or fewer elements (#11446)
**What this PR does / why we need it**: In the case where we have zero elements, we can exit early; with 1 element there's no need for concurrency. This will provide a small optimisation and also make our profiles/execution traces easier to read. We have a fairly significant amount of requests which don't require concurrency.
- Loading branch information
Danny Kopping
committed
Dec 12, 2023
1 parent
cdf1f77
commit c7447e2
Showing
2 changed files
with
25 additions
and
3 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