giampaolo / pyftpdlib

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

Consider using posix_fadvise(POSIX_FADV_SEQUENTIAL) #501

Open giampaolo opened 5 years ago

giampaolo commented 5 years ago

...before sending (aka start reading) a file. This is supposed to tell the kernel that the file will be read sequentially, and hence perhaps improve performances.

giampaolo commented 5 years ago

proftpd uses POSIX_FADVISE_SEQUENTIAL on RETR and PR_FS_FADVISE_DONTNEED on STOR.