about summary refs log tree commit diff
path: root/src/libstd/rt/util.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-20 09:42:00 -0700
committerbors <bors@rust-lang.org>2013-08-20 09:42:00 -0700
commit67c954e365970e4c2cd06f0c50724656d7010f45 (patch)
treed3b73e89a241ab0210e53d80b1846394139bf693 /src/libstd/rt/util.rs
parent7f268128954fef84dcbcb7c9fe77e2a107e0bf69 (diff)
parente5ccf13668ed7b66d6efd9a1a03926e98546705d (diff)
downloadrust-67c954e365970e4c2cd06f0c50724656d7010f45.tar.gz
rust-67c954e365970e4c2cd06f0c50724656d7010f45.zip
auto merge of #8566 : toddaaro/rust/idle-opt+cleaning, r=catamorphism,brson
Instead of a furious storm of idle callbacks we just have one. This is a major performance gain - around 40% on my machine for the ping pong bench.

Also in this PR is a cleanup commit for the scheduler code. Was previously up as a separate PR, but bors load + imminent merge hell led me to roll them together. Was #8549.

Diffstat (limited to 'src/libstd/rt/util.rs')
-rw-r--r--src/libstd/rt/util.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/rt/util.rs b/src/libstd/rt/util.rs
index c81f3ec9a79..1f29830aa04 100644
--- a/src/libstd/rt/util.rs
+++ b/src/libstd/rt/util.rs
@@ -66,8 +66,7 @@ pub fn default_sched_threads() -> uint {
 pub fn dumb_println(s: &str) {
     use io::WriterUtil;
     let dbg = ::libc::STDERR_FILENO as ::io::fd_t;
-    dbg.write_str(s);
-    dbg.write_str("\n");
+    dbg.write_str(s + "\n");
 }
 
 pub fn abort(msg: &str) -> ! {