4 ms·
You can surely win some laptop benchmarks by mmaping some files on certain close to the metal filesystems. But for general production case mmap shouldn't even
by zzzcpan 8y ago
You can surely win some laptop benchmarks by mmaping some files on certain close to the metal filesystems.
But for general production case mmap shouldn't even be considered a solution to the syscall and memory copy overhead problem. If that overhead is too big for you, other approaches work better, like buffering, application level caching, etc.
- hyc_symas 8y agoWow, this is so wrong in so many ways. Buffering and application level caching mean you're wasting memory, and also wasting code space and CPU time because you're duplicating work that the OS already does.