W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2014

Re: Stuck in a train -- reading HTTP/2 draft.

From: Poul-Henning Kamp <phk@phk.freebsd.dk>
Date: Wed, 18 Jun 2014 20:33:24 +0000
To: Martin Thomson <martin.thomson@gmail.com>
cc: Jason Greene <jason.greene@redhat.com>, Greg Wilkins <gregw@intalio.com>, Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <3250.1403123604@critter.freebsd.dk>
In message <CABkgnnVT8zGSiU8fDqNtiaL+f2ziBytyP_SUGyPSL2anZf546Q@mail.gmail.com>
, Martin Thomson writes:
>On 18 June 2014 13:17, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
>> In that case we should transfer the time as a POSIX time_t in the
>> HEADERS frame.  Wasting time huffman encoding dates and still
>> using 24 bytes where 8 would be plenty is just plain stupid.
>
>Yeah, that was discussed and rejected, though not permanently.  I
>think that James worked out that 5 bytes was enough in the short term
>with a little epoch tweaking.
>
>And yes, we are plain stupid.  Think of the cost of parsing that stuff
>as opposed to doing ntohl().

Indeed.  Ascii Timestamps amount for about 30% if Varnish CPU load :-/

-- 
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 Wednesday, 18 June 2014 20:33:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:31 UTC