[Haskell-cafe] whatever happened to sendFile?

Chaddaï Fouché chaddai.fouche at gmail.com
Wed Aug 13 15:26:40 EDT 2008


2008/8/13 Brandon S. Allbery KF8NH <allbery at ece.cmu.edu>:
>
> 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.
>

Ok, so it could still be useful in a restricted area (but then it
should be easy to write a FFI wrapper for it anyway).

-- 
Jedaï


More information about the Haskell-Cafe mailing list