Hacker News new | ask | show | jobs
by xoranth 892 days ago
Dumb question. With io_uring, how do you handle lines that straddle between chunks? I'm asking since, AFAIU, the submitted requests are not guaranteed to be completed in order.

(The easiest I can think of is submitting reads for "overlapped" chunks, I'm not sure there is an easier way and I'm not sure of how much performance overhead there is to it.)

1 comments

You have to handle it manually. Remember the partial lines at the beginning/end of your chunks and merge them when their mates become available.