Kazu Yamamoto ( 山本和彦 )
kazu at iij.ad.jp
Wed Jun 15 03:43:52 CEST 2011
I have uploaded the simple-sendfile package to HackageDB.
This is a simple version of the sendfile package which use unnecessary
system calls (stat() and lseek()).
The simple-sendfile package provides native sendfile support for
Linux, BSDs, and MacOS. For other OSes, a fallback function using
read()/send () is provided.
Since the limitation of sendfile on Linux, stat() is called if
EntireFile is used. But we can use PartOfFile instead to send entire
I modified Warp to make use of the simple-sendfile package.
And I confirmed that performance becomes much better. I'm very
satisfied with the current performance.
Since I don't know how T.Handle should be used, the commit above just
ignores T.Handle at this moment. If necessary, I would love to modify
the API of the simple-sendfile package.
More information about the web-devel