Maybe three weeks ago, I* refactored some code out of dupblaster and methylsieve for using dedicated threads with large buffers for read-ahead and write-behind. Why? Because it turns out, even in Rust, it's still hard to write threading code that "just works". github.com/tfenne/rawb-io
GitHub - tfenne/rawb-io: Read-ahead / write-behind byte IO: threaded Reader/Writer that decouple a pipeline stage from the kernel pipe via a background thread and a byte ring buffer
Read-ahead / write-behind byte IO: threaded Reader/Writer that decouple a pipeline stage from the kernel pipe via a background thread and a byte ring buffer - tfenne/rawb-io
github.com