News for hackers. Stuff that matters.
Re:Use mmap with care by zzzcpan on Thursday May 02, 2019 @10:33AM (#19808297)
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.

Re:Use mmap with care by hyc_symas on Friday May 03, 2019 @06:52AM (#19817197)
Wow, 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.