How to read a file concurrently?
Open
- Dominant language
- Rust
- Stars
- 4.1k
- Forks
- 339
- PR merge metrics
- No merged PRs in 30d
Description
I want to sending a large file to another host over network, for making it speed up, I would create multiple threads, every thread sending one part of the file. so multiple threads will reading the same file concurrently. there are two solutions:
1. share the async_std::fs::File between threads.
2. open the same file in every thread.
which is the conventional and fast way?
Contributor guide
Assessment
This issue has not been assessed yet.