-
Notifications
You must be signed in to change notification settings - Fork 4
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 mmap for large files #13
Comments
This is probably not very useful: https://stackoverflow.com/questions/45972/mmap-vs-reading-blocks#6383253. Would need to check with |
What this could help with is avoid double copies: currently
Note how 80% of the time is for IO: 38% for sending to the socket and 44% for reading from the file. If we could pass a pointer to an |
Tested this both ways; this has a speedup of 48%! Counting this as a resounding success. With
With
|
See #10
The text was updated successfully, but these errors were encountered: