Linux C Socket sendfile

2019/07/15 C/CPP

sendfile比send快?

sendfile

看到有文章说sendfile会比直接的readwrite快, 就自己尝试跑了程序对比了下时间,实际结果发现效果是有一些的。但是通过网络搜索, 除了了解了sendfile的原理外, 也发现了sendfile的诸多限制(不同版本会有些许不同), 这些都值得再好好看一下。

Readlist

Create file for test

Search

    Categories Cloud

    Life Linux C/CPP Database Web Benchmarks Software Data Python TCP/IP Financial Stock Bug Golang Rust General Infrastructure TODO Movie Multitenancy Java Ant Algorithm Fastjson Death Build Deploy Education India Aamir Khan Society Female Learning Method OJ Interviewee Interviewer AVL Tree MyBatis Code Reading Design Diary Dating Heap Data Structure Summary Reading Love Claire Mcfall Ferryman Zodiac Astrology Chinese Calculator flink Dubbo docker redis

    Table of Contents