selfrando
selfrando copied to clipboard
Use sendfile() to copy files faster in TrapLinker
We currently use the read
/write
syscall pair to implement file copying in TrapLinker. For higher throughput (as well as avoiding copying file contents in and out of user space), we should use sendfile
instead. This syscall copies data between files directly from kernel space, so it should be much faster.