Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread-friendly batched reading #1

Open
Freaky opened this issue May 3, 2018 · 0 comments
Open

Thread-friendly batched reading #1

Freaky opened this issue May 3, 2018 · 0 comments
Assignees

Comments

@Freaky
Copy link
Owner

Freaky commented May 3, 2018

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 Freaky self-assigned this May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant