2 ms·
Three syscalls instead of one will probably not make a difference. Copying a 50mb file multiple times will.
by paulddraper 11y ago
Three syscalls instead of one will probably not make a difference. Copying a 50mb file multiple times will.
- ryanpetrich 11y agoBut they aren't free and if the file size is sufficiently small, the overhead of the constant overhead of the additional syscalls will dwarf the variable overhead of the extra copy. FreeBSD/OS X's sendfile allows specifying a header and trailer in a single syscall to avoid this limitation.
- paulddraper 11y agoI'd be interested in reading how small the file has to be for this to be necessary.