3 ms·
Apparently there is one less memory copy when using mmap, since read() copies from the intermediate buffer that mmap provides access to. Neat! https://medium.c
by sgtnoodle 6y ago
Apparently there is one less memory copy when using mmap, since read() copies from the intermediate buffer that mmap provides access to. Neat!
https://medium.com/@sasha_f/why-mmap-is-faster-than-system-calls-24718e75ab37 https://medium.com/@sasha_f/why-mmap-is-faster-than-system-c...