Skip to content

Commit

Permalink
Rewrite with Mutex/Condvar intead of mpsc
Browse files Browse the repository at this point in the history
The `std::sync::mpsc` module is quite heavy in terms of codegen, so make
this crate a bit of a lighter dependency by using mutexes/condvars which
are much easier on codegen.

On a local machine in `-j1` mode this goes from 1.97s to 1.28s in
release mode and 1.61s to 1.11s in debug mode.
  • Loading branch information
alexcrichton committed Sep 19, 2019
1 parent 379401a commit 25a9ee9
Showing 1 changed file with 147 additions and 90 deletions.
Loading

0 comments on commit 25a9ee9

Please sign in to comment.