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.
Make RequestContext provider overridable in order to save cost of set…
…Context() on each fiber context switch Summary: Each fiber context switch currently involves the cost of saving/restoring `RequestContext`. Certain fibers-based applications such as mcrouter don't use `RequestContext` at all, so updating the current thread-global `RequestContext` on each fiber context switch is unnecessary overhead. Avoid this cost by allowing `FiberManager` to override the `RequestContext` provider at the start and end of each fiber drain loop. Reviewed By: andriigrynenko Differential Revision: D5787837 fbshipit-source-id: ea9041ce228063c8701165366fd1e34132868d22
- Loading branch information
1 parent
14b0638
commit 943afd9
Showing
5 changed files
with
215 additions
and
11 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