]> git.kaiwu.me - nginx.git/commit
Microoptimization of sendfile(2) usage under FreeBSD.
authorMaxim Dounin <mdounin@mdounin.ru>
Sun, 11 Dec 2011 16:30:42 +0000 (16:30 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Sun, 11 Dec 2011 16:30:42 +0000 (16:30 +0000)
commitae0e919135b7e1e80167d09b5bd2fef7903f7659
treea5f390dae59ed792dc9140b68e4188ae7cb4e4a7
parent8d3ef1a3b320f786d06170d5831555aa3910de64
Microoptimization of sendfile(2) usage under FreeBSD.

FreeBSD kernel checks headers/trailers pointer against NULL, not
corresponding count.  Passing NULL if there are no headers/trailers
helps to avoid unneeded work in kernel, as well as unexpected 0 bytes
GIO in traces.
src/os/unix/ngx_freebsd_sendfile_chain.c