-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
if constexpr
shortcut for CancellationToken::merge(x)
Summary: This takes the `merge1` microbench (stacked) from 74ns to 24ns without regressing anything. This is helpful for generic programs, where the pack MIGHT have 1 element, and there's no reason to shortcut this on the client side. Reviewed By: Orvid Differential Revision: D65044520 fbshipit-source-id: e2f91bbc69439d5759d79d8a5391f5ba3e0239ed
- Loading branch information
1 parent
df4cfee
commit 9173e45
Showing
2 changed files
with
17 additions
and
6 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