[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hybi] WS framing alternative



Ian Hickson wrote:

> Not particularly. In languages with automatic dynamic strings (like Perl, 
> Python, ObjectPascal, etc) you just concatenate and all the complexity is 
> hidden from you by the compiler or language runtime. 

Hidden complexity is still complexity.

On enterprise level servers, limiting the amount of data copying
and buffer allocation/resizing is key to achieving scalability.
Managing when and how data moves from kernel space to user-space
is also important and knowing a length up front can help with
that.

Having a protocol optimized for ease of perl implementation, but that
is difficult to optimize for scale is not ideal.

Besides - you say that there are quality utf-8 libraries available. So I
don't see the argument that says it is hard to know the length that is
being sent?

regards


Note Well: Messages sent to this mailing list are the opinions of the senders and do not imply endorsement by the IETF.