Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use sendfile on linux #224

Open
briot opened this issue Jul 16, 2021 · 0 comments
Open

use sendfile on linux #224

briot opened this issue Jul 16, 2021 · 0 comments

Comments

@briot
Copy link
Contributor

briot commented Jul 16, 2021

On linux at least (other unixes seem to have similar system calls), the most efficient way to send files is to use the sendfile() system call (rather than read the file, then write the bytes). This significantly reduces the number of system calls, and because sendfile can most of the time use Direct Memory Access, it also avoids extra copies of the file.

It would be nice if AWS could take advantage of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant