Announcing sendfile-0.1: A library which exposes zero-copy sendfile functionality in a portable way. http://hackage.haskell.org/package/sendfile-0.1
Right now it supports natively linux 2.6+ (maybe older too) and windows 2000+ -- on other platforms it will fall back seamlessly to a portable haskell implementation. Please test it out and send your experiences / bug reports to [email protected]. Patches for other platforms also welcome (but please preserve the existing style). Recommended initial testing steps: cabal install sendfile wget http://patch-tag.com/r/sendfile/snapshot/current/content/raw/test.hs runghc test.hs open http://127.0.0.1:8000 in your web browser and see if test.hs was rendered properly (firefox recommended) see which mode it was rendered in (stdout will say one of WIN32_SENDFILE, LINUX_SENDFILE, or PORTABLE_SENDFILE) Happy Hacking! Matthew Elder
_______________________________________________ Haskell mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell
