El viernes, 20 de julio de 2012 14:00:52 UTC-3, Roly Fentanes escribió:
>
> I created a module that does this https://github.com/fent/node-kat
>

Very nice! It's like a generic StreamQueue.

>
> Doing it in parallel would mean to keep a lot of those data events in 
> memory, taking away one of the main benefits of using streams.
>
 
Oh, ok! So one advantage of streams is that only a small Buffer object 
lives in memory during the "data" event. While if you for instance read a 
very large file with readFile() you get at the end a very large string in 
memory. It's kind of obvious since that's why we "stream" video, but I 
hadn't thought about it. Thanks!

Juan
 

>

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to