giampaolo / pyftpdlib

Extremely fast and scalable Python FTP server library
MIT License
1.65k stars 267 forks source link

Use splice() to speedup file recv() #493

Open giampaolo opened 5 years ago

giampaolo commented 5 years ago

Samba does it: https://github.com/samba-team/samba/blob/master/source3/lib/recvfile.c

giampaolo commented 5 years ago

See also: https://github.com/arkaitzj/python-butter/blob/master/butter/splice.py