[Haskell-cafe] whatever happened to sendFile?
jason.dusek at gmail.com
Wed Aug 13 15:52:32 EDT 2008
Brandon S. Allbery KF8NH <allbery at ece.cmu.edu> wrote:
> 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.
More information about the Haskell-Cafe