forked from facebook/folly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize construction of most {Future,Promise}Exceptions
Summary: Some exception such as `FutureCancellation` and `BrokenPromise` are constructed at high volume because they are used for non-exceptional paths. The base class `logic_error` always copies its argument into an internal `std::string`, and most of the error messages do not fit in inline storage. Since the error messages are all static, we can specialize the `what()` to avoid the copy. Reviewed By: ispeters Differential Revision: D49638973 fbshipit-source-id: 3aa91f1655d10e5eda28c70f24745eefd92bde0b
- Loading branch information
1 parent
1838f1f
commit 75ba8fe
Showing
5 changed files
with
65 additions
and
25 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
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
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