4 ms·
If you read a file with malloc and memcpy, it copies the data from the kernel to userspace. With mmap there is no copying.
by jhatemyjob 4y ago
If you read a file with malloc and memcpy, it copies the data from the kernel to userspace. With mmap there is no copying.