about summary refs log tree commit diff
path: root/src/libsync
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-06-19 13:42:23 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-19 13:42:23 -0700
commit41706269c8ff6f99cdd0b6d4a1912778f47fe4d2 (patch)
tree205725643f0fcda85df7a00aeff2d12b68bb3d28 /src/libsync
parent22d62fc8e1472fdc30a83bc18c8e10687f7e8c6e (diff)
downloadrust-41706269c8ff6f99cdd0b6d4a1912778f47fe4d2.tar.gz
rust-41706269c8ff6f99cdd0b6d4a1912778f47fe4d2.zip
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.
Diffstat (limited to 'src/libsync')
-rw-r--r--src/libsync/comm/select.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsync/comm/select.rs b/src/libsync/comm/select.rs
index 0cb230644df..de89e33ffda 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