3 ms·
I've successfully used mmap() a few times in the last few years... Luckily for me the use cases I've had weren't really subject to the same problems I've since
by dicroce 7y ago
I've successfully used mmap() a few times in the last few years... Luckily for me the use cases I've had weren't really subject to the same problems I've since read about here and elsewhere:
1) I'm always mmap()ing the whole file (and the files are power of 2 sized).
2) The files I'm mapping are stored on file systems I control (and so are never on NFS).
3) In one case, my use of mmap() is limited to read only.