The advantage is speed, if the kernel buffer is empty - it'll be just
copied without costly invocation of the syscall.


On Thu, Aug 7, 2014 at 7:07 PM, Iñaki Baz Castillo <[email protected]> wrote:

> Hi, write() allows passing more than a single buffer. Which is the
> advantage, in terms of performance, over calling N times to write()?
>
> NOTE: When I say "write()" I want to say "first try try_write() and
> fallback to write() if it fails".
>
> Thanks a lot.
>
> --
> Iñaki Baz Castillo
> <[email protected]>
>
> --
> You received this message because you are subscribed to the Google Groups
> "libuv" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/libuv.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to