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

Re: Delta Compression and UTF-8 Header Values

From: Martin Nilsson <nilsson@opera.com>
Date: Sat, 09 Feb 2013 15:12:32 +0100
To: ietf-http-wg@w3.org
Message-ID: <op.wr8se6rpiw9drz@uranium.westinmy-starwoodgp.com>
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.

/Martin Nilsson

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
Received on Saturday, 9 February 2013 14:12:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 9 February 2013 14:13:07 GMT