]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #8356 : toddaaro/rust/ws, r=brson
authorbors <bors@rust-lang.org>
Thu, 8 Aug 2013 23:32:02 +0000 (16:32 -0700)
committerbors <bors@rust-lang.org>
Thu, 8 Aug 2013 23:32:02 +0000 (16:32 -0700)
This pull request converts the scheduler from a naive shared queue scheduler to a naive workstealing scheduler. The deque is still a queue inside a lock, but there is still a substantial performance gain. Fiddling with the messaging benchmark I got a ~10x speedup and observed massively reduced memory usage.

There are still *many* locations for optimization, but based on my experience so far it is a clear performance win as it is now.

1  2 
src/libstd/rt/comm.rs
src/libstd/rt/select.rs

Simple merge
Simple merge