|
|
|
|
|
by astrange
1985 days ago
|
|
If you're reading sequentially this shouldn't be a problem because the VM system can pick up hints, or you can use madvise. If you're reading randomly this is true and you want some kind of async I/O or multiple read operation. mmap is also dangerous because there's no good way to return errors if the I/O fails, like if the file is resized or is on an external drive. |
|