Sendfile (2) can reduce latency due to redundant memcpy (2).
因为多余的memcpy(2),所以Sendfile(2)可以减少延迟。
In this example, the memcpy operation is trying to read 20 bytes from PTR, but it has been allocated only 10 bytes.
在本例中,memcpy操作尝试从ptr读取20个字节,但是后者仅被分配了10个字节。
In this example, the memcpy operation is trying to write 11 bytes to p, whereas it has been allocated only 10 bytes.
在本例中,memcpy操作尝试将11个字节写到p,而后者仅被分配了10个字节。
应用推荐