On 23/04/2013, at 02:01, Isaac Schlueter wrote:

> There's a syscall called `writev` that lets you write an array (ie,
> "Vector") of buffers of data rather than a single buffer.
> <snip>


About 3 years ago when ry was working on this for streams, I implemented a 
writev() for fs.write()s and even sent a patch, and found that -IIRC- 
writev()ing was more than 20% faster than simply write()ing, but there seems to 
be a limit in writev()s maximum allowable iovecs iocnt, if you hit it you have 
to break it down in several smaller writev()s with fewer iovecs and queue them 
properly, which is a bit of a mess.

-- 
( Jorge )();

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to