From 41706269c8ff6f99cdd0b6d4a1912778f47fe4d2 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 19 Jun 2014 13:42:23 -0700 Subject: [PATCH] sync: Enable the fast path of select() This was erroneously disabled as part of 065e121f and it hasn't been turned on since. This was a 3x perf improvement in a test of mine. --- src/libsync/comm/select.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/comm/select.rs b/src/libsync/comm/select.rs index 0cb230644df91..de89e33ffda4e 100644 --- a/src/libsync/comm/select.rs +++ b/src/libsync/comm/select.rs @@ -132,7 +132,7 @@ impl Select { /// event could either be that data is available or the corresponding /// channel has been closed. pub fn wait(&self) -> uint { - self.wait2(false) + self.wait2(true) } /// Helper method for skipping the preflight checks during testing