rust-lang / jobserver-rs

Apache License 2.0
69 stars 40 forks source link

Try blocking reads first to avoid thundering herd problem #31

Closed the8472 closed 3 years ago

the8472 commented 3 years ago

Linux 5.6 and up optimize the wakeups of pipe readers when pipes have multiple readers and those readers are blocking. Always polling defeats that optimization.

https://github.com/torvalds/linux/commit/0ddad21d3e99c743a3aa473121dc5561679e26bb

fixes #30

alexcrichton commented 3 years ago

Thanks!