Re: Delta Compression and UTF-8 Header Values

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 UTC