summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_executor_reserved.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/transport/service_executor_reserved.cpp')
-rw-r--r--src/mongo/transport/service_executor_reserved.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/transport/service_executor_reserved.cpp b/src/mongo/transport/service_executor_reserved.cpp
index beeb7618bd0..d52a38920b7 100644
--- a/src/mongo/transport/service_executor_reserved.cpp
+++ b/src/mongo/transport/service_executor_reserved.cpp
@@ -38,7 +38,6 @@
#include "mongo/stdx/thread.h"
#include "mongo/transport/service_entry_point_utils.h"
#include "mongo/transport/service_executor_task_names.h"
-#include "mongo/transport/thread_idle_callback.h"
#include "mongo/util/log.h"
#include "mongo/util/processinfo.h"
@@ -170,17 +169,6 @@ Status ServiceExecutorReserved::schedule(Task task,
}
if (!_localWorkQueue.empty()) {
- /*
- * In perf testing we found that yielding after running a each request produced
- * at 5% performance boost in microbenchmarks if the number of worker threads
- * was greater than the number of available cores.
- */
- if (flags & ScheduleFlags::kMayYieldBeforeSchedule) {
- if ((_localThreadIdleCounter++ & 0xf) == 0) {
- markThreadIdle();
- }
- }
-
// Execute task directly (recurse) if allowed by the caller as it produced better
// performance in testing. Try to limit the amount of recursion so we don't blow up the
// stack, even though this shouldn't happen with this executor that uses blocking network