diff options
| author | bors <bors@rust-lang.org> | 2013-08-20 09:42:00 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-20 09:42:00 -0700 |
| commit | 67c954e365970e4c2cd06f0c50724656d7010f45 (patch) | |
| tree | d3b73e89a241ab0210e53d80b1846394139bf693 /src/libstd/rt/task.rs | |
| parent | 7f268128954fef84dcbcb7c9fe77e2a107e0bf69 (diff) | |
| parent | e5ccf13668ed7b66d6efd9a1a03926e98546705d (diff) | |
| download | rust-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/task.rs')
| -rw-r--r-- | src/libstd/rt/task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index 95d60c11df6..3b8eb87f8af 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -370,7 +370,7 @@ impl Coroutine { // Again - might work while safe, or it might not. do Local::borrow::<Scheduler,()> |sched| { - (sched).run_cleanup_job(); + sched.run_cleanup_job(); } // To call the run method on a task we need a direct |
