Re: The use of binary data in any part of HTTP 2.0 is not good

Amos Jeffries <squid3@treenet.co.nz> Tue, 22 January 2013 10:28 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CF63421F87EE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 22 Jan 2013 02:28:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.093
X-Spam-Level:
X-Spam-Status: No, score=-9.093 tagged_above=-999 required=5 tests=[AWL=0.293, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_OBFU_MILLIONS=1.213]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ewRFQ+0hiBbq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 22 Jan 2013 02:28:08 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5B1D721F8692 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 22 Jan 2013 02:28:08 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Txb4y-0001Nd-7b for ietf-http-wg-dist@listhub.w3.org; Tue, 22 Jan 2013 10:27:44 +0000
Resent-Date: Tue, 22 Jan 2013 10:27:44 +0000
Resent-Message-Id: <E1Txb4y-0001Nd-7b@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1Txb4u-0001My-L9 for ietf-http-wg@listhub.w3.org; Tue, 22 Jan 2013 10:27:40 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1Txb4t-0006vR-OK for ietf-http-wg@w3.org; Tue, 22 Jan 2013 10:27:40 +0000
Received: from [192.168.1.109] (unknown [14.1.64.4]) by treenet.co.nz (Postfix) with ESMTP id 5FF59E72D6 for <ietf-http-wg@w3.org>; Tue, 22 Jan 2013 23:27:18 +1300 (NZDT)
Message-ID: <50FE6982.3040205@treenet.co.nz>
Date: Tue, 22 Jan 2013 23:27:14 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <emaeef5a13-0231-4bb4-832b-ef931267baed@bombed>
In-Reply-To: <emaeef5a13-0231-4bb4-832b-ef931267baed@bombed>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.0
X-W3C-Hub-Spam-Report: AWL=-2.956, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Txb4t-0006vR-OK 25ca69b022bd55520869fb9886edc4bb
X-Original-To: ietf-http-wg@w3.org
Subject: Re: The use of binary data in any part of HTTP 2.0 is not good
Archived-At: <http://www.w3.org/mid/50FE6982.3040205@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16103
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 22/01/2013 10:33 p.m., Adrien W. de Croy wrote:
>
>
> ------ Original Message ------
> From: "Nico Williams" <nico@cryptonector.com>
>>
>> We could also go with receiver-makes right. In this case every
>> message (request, response) must include a BOM and then the receiver
>> makes right. This strikes me as fair, if not, perhaps, compelling..
> I'd rather have a milllion htons and ntohs than having to procede each 
> one with an if statement as well.
>
> so I think this is a bad idea
>

You could optimize by writing two parsers in complete duplicate and 
switching between them on sighting the BOM.
It only doubles the memory footprint instead of the CPU footprint. ;-)

Amos