While searching for the cause of performance issue BF-27452, we discovered a few things that were not the cause, but were still worthy of improvement.
Redundant yield. The fix SERVER-73623 added a yield before _receiveRequest, but did not remove the yield after sendResponse. Testing shows that we don't need the yield after sendResponse anymore.
Unnecessary binding of Frame to a shared_ptr, copied into lambdas. This could be a data member of SessionWorkflow.
- is related to
-
SERVER-73623 SessionWorkflow: yield before _receiveRequest
- Closed