rust-linereader icon indicating copy to clipboard operation
rust-linereader copied to clipboard

Thread-friendly batched reading

Open Freaky opened this issue 7 years ago • 0 comments

next_batch() still requires unnecessary copying if the batch is being sent to another thread.

Add a method that's effectively a greedy read_until(), filling a user-provided buffer directly from the reader and slicing off any partial lines, which will go into the internal buffer for the next batch.

Freaky avatar May 03 '18 19:05 Freaky