
13 Aug
2008
13 Aug
'08
7:52 p.m.
Brandon S. Allbery KF8NH
I should clarify: what sendfile() is supposed to optimize isn't writing large strings, or even the user<->kernel roundtrips; it's an optimization to the kernel network stack (network buffer management, to be specific). Web servers use it to serve static content (e.g. icons, images, stylesheets) because it significantly reduces system load.
Indeed, and it my intention to use it for just this purpose -- serving numerous large images from a Haskell network server. However -- and here is the weird part -- it needs to work on Windows as well, because the server must be able to run locally for clients. -- _jsn