Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
阅读这篇零拷贝文章,
Windows 操作系统(服务器 2003、2008、2008 R2)中是否存在零拷贝?
是的,它是通过API支持的TransmitFile。
TransmitFile
我很确定 IIS 也使用它。
文档中没有明确提及此方法是否执行真正的零复制(即甚至不从文件缓冲区复制到套接字缓冲区)。但考虑到这种方法的定义方式肯定使它成为可能,如果不是这种情况,我会感到非常惊讶。
最接近文档清楚说明的是这一段:
[...]TransmitFile通过直接从文件缓存发送数据来实现其性能提升。