commit | ae0e919135b7e1e80167d09b5bd2fef7903f7659 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Sun Dec 11 16:30:42 2011 +0000 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Sun Dec 11 16:30:42 2011 +0000 |
tree | a5f390dae59ed792dc9140b68e4188ae7cb4e4a7 | |
parent | 8d3ef1a3b320f786d06170d5831555aa3910de64 [diff] |
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.