W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2013

Re: Delta Compression and UTF-8 Header Values

From: Nico Williams <nico@cryptonector.com>
Date: Sat, 9 Feb 2013 11:47:48 -0600
Message-ID: <CAK3OfOiU2PLFFzyQemPCUQ_Ss7MJkbmQsD=n+qq9RqmCr__mKA@mail.gmail.com>
To: Martin Nilsson <nilsson@opera.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
On Saturday, February 9, 2013, Martin Nilsson wrote:

> On Sat, 09 Feb 2013 14:33:41 +0100, Willy Tarreau <w@1wt.eu> wrote:
>
>  Also, processing it is
>> particularly inefficient as you have to parse each and every byte to find
>> a length, making string comparisons quite slow.
>>
>
> You don't need to know the length in characters to compare strings. Just
> comparing byte on byte works fine. Null is encoded the same, and byte zero
> only appear as null in UTF-8, so strlen works fine. So far strings are
> hollerith encoded in HTTP/2, so it should be a moot point anyway.
>

<insert pedantic comment about Unicode normalization here>
Received on Saturday, 9 February 2013 17:48:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 9 February 2013 17:48:16 GMT