Re: JSON headers

--------
In message <1468211839.6746.67.camel@warmcat.com>, Andy Green writes:

>Actually it'd be nice, and efficient, if we could assemble one header
>payload in the library, pass it up to the application to copy or act
>on, and then reuse the buffer, as we go through the incoming, possibly
>fragmented, header content.

Exactly.

You also avoid the O(N^2) search operation to see if split headers
happened in the first place.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

Received on Monday, 11 July 2016 05:56:01 UTC