ArniDagur / InstantTee

Rust implementation of the tee command using splice() and tee() Linux system calls. It is 4-5 times faster than GNU.
MIT License
5 stars 1 forks source link

Multithreading #2

Open ArniDagur opened 5 years ago

ArniDagur commented 5 years ago
Josh Stone @cuviper
@ArniDagur your use of hurdles::Barrier will spin CPU, so you're doing more work there at least
but generally, for IO-bound parallelism, I'd look at tokio
rayon is more for computational parallelism

Árni Dagur @ArniDagur 22:54
Thanks. I will look into Tokio.
So https://tokio-rs.github.io/tokio/tokio_threadpool/index.html specifically?

Josh Stone @cuviper 22:56
perhaps, but you might not even need explicit threads
I think tokio's default main loop is already threaded
I haven't used it much though, so you should ask tokio folks for advice

Árni Dagur @ArniDagur 23:01
thank you very much