Matt,
Yeah, I'm kind of in agreement here. TCP_CORK is a venerable old TCP-ism.
Functionally, though a top-level writev([{chunk,encoding}],cb) or
writev([chunks],[encodings],cb) *seems* a bit simpler, it's actually
not saving much complexity, compared with what it adds to the Writable
user. (Node *uses* a lot of streams, as well as implementing them, so
this is a relevant consideration from the "keep core simple" point of
view.)
Anyone unfamiliar with TCP_CORK should read this: http://baus.net/on-tcp_cork
On Wed, Apr 24, 2013 at 11:09 AM, greelgorke <[email protected]> wrote:
> stream.end should uncork and +1 (or see my prev post)
Yes, that is a good idea.
On Wed, Apr 24, 2013 at 8:30 AM, Matt <[email protected]> wrote:
> On Wed, Apr 24, 2013 at 11:09 AM, greelgorke <[email protected]> wrote:
>>
>> stream.end should uncork and +1 (or see my prev post)
>>
>> Am Mittwoch, 24. April 2013 15:18:08 UTC+2 schrieb Matt Sergeant:
>>>
>>> I'm gonna go against the crowd and ask for B:cork/uncork here. It's far
>>> easier for when you don't have a bunch of pre-composed buffer objects, and
>>> would fit into something streaming lines to the output a lot better. Yes you
>>> can fuck up, but there's a million ways the programmer can fuck up with node
>>> anyway.
>
>
> Also worth noting that experienced network programmers are used to doing
> cork/uncork already, so this will be familiar to them.
>
> --
> --
> 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
>
> ---
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
--
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
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.