Hacker News new | past | comments | ask | show | jobs | submit login

I wonder if they could improve this by queueing multiple positions to read at once. Presumably the disk will be able to do some of them more efficiently.



(author here) Hey, that's actually a great idea. I remember reading about a fast grep or wc implementation that did parallel reads.

Off the top of my head, I don't really know how to do that (aside from the naive way of using threads), I'm guessing readv[1] might be be useful? Will definitely look into it.

[1]: https://linux.die.net/man/2/readv




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: