Make RequestContext provider overridable in order to save cost of setContext()...
Make RequestContext provider overridable in order to save cost of setContext() 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
Showing
Please register or sign in to comment