unix-bytestring v0.2.0 (Was: Re: Proposal: add ByteString support to unix:System.Posix.IO API)

Tyson Whitehead twhitehead at gmail.com
Mon Mar 7 04:19:00 CET 2011


On March 5, 2011 07:30:24 wren ng thornton wrote:
> P.S., what the heck is readv(2) supposed to be good for? Does anyone
> want to see a binding for it?

Strikes me as something you might want to use in code that is orientated 
towards working with chunks of data of a possibly fixed maximum size (i.e., a 
chunk orientated steaming environment).

The readv call gives you the ability to fill a series of chunks (e.g., from a 
free chunk list or something) with one call into the kernel.  This could be a 
significant improvement from being forced to fill them individually.

Cheers!  -Tyson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://www.haskell.org/pipermail/libraries/attachments/20110306/476193fd/attachment.pgp>


More information about the Libraries mailing list