Re: Key Points of Improvement of Huffman Codes
姓名 <falsandtru@gmail.com> Sat, 09 December 2023 22:06 UTC
Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=ietf.org@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 4F558C14F61C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 9 Dec 2023 14:06:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.755
X-Spam-Level:
X-Spam-Status: No, score=-2.755 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 86JAgmLsurbZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 9 Dec 2023 14:06:24 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5C5C1C14F5EF for <httpbisa-archive-bis2Juki@ietf.org>; Sat, 9 Dec 2023 14:06:24 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1rC5Sf-00AhCy-KI for ietf-http-wg-dist@listhub.w3.org; Sat, 09 Dec 2023 22:06:13 +0000
Resent-Date: Sat, 09 Dec 2023 22:06:13 +0000
Resent-Message-Id: <E1rC5Sf-00AhCy-KI@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <falsandtru@gmail.com>) id 1rC5Se-00AhBw-3g for ietf-http-wg@listhub.w3.org; Sat, 09 Dec 2023 22:06:12 +0000
Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by titan.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <falsandtru@gmail.com>) id 1rC5SZ-009cpB-T3 for ietf-http-wg@w3.org; Sat, 09 Dec 2023 22:06:11 +0000
Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-50bfe99b6edso3854750e87.1 for <ietf-http-wg@w3.org>; Sat, 09 Dec 2023 14:06:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702159563; x=1702764363; darn=w3.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=64KfDvX5cGWTSZKgCicXfzr9wT4I0/PdwP2Zoph3uoY=; b=lAKlMvmblrtdrHdHbpfH93Swd3Csemf8TxU0JjUHuvQCU22QzJlwR8A+6Ie0q1ivR3 EjT6343vz1D0eVhq8pIucYg5eIKBtudkyaGcufEeMSNLZNMEkS9MQ9x98dG7rVvmjfxu nHzIgqUM+ZmMJRMwlaxyFjfmk1Toeir/1y5EXiUigXqTR8qkz1s2W42AVxdn7/KCFnP4 eCTg0j03eHTPZKwHfEf4nDynP1MaX3Ypi0QiJmFriB4qC82FVe1Kla2ImG8dqQ+9hXJf P5h/ALO6K3UY+Ej842u3WsGdzwM2Y9dGg7SIMcfqn+1H9n6PxAT4QQqLdNxaWHxiw++A Bt9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702159563; x=1702764363; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=64KfDvX5cGWTSZKgCicXfzr9wT4I0/PdwP2Zoph3uoY=; b=Dq05QwgKjFM43kTdHx4LKOWNnqR6V1WfpLMyQKygq9NS55PQEAVFBDf3+Q3TCzudqV TLBknXqJg3WuGYOOtlIf2NrQFguj5tKbB8eSv/wY6IKlwJAD920VvNG2mmYfhHSBCZId kdx3sluR9uBQu2n/FiLLEHFgdilaZhULa4oXKPYCtL3dwp0a1QS7yIoE+EuLM6qKKZgo mZLkubpfXdwfaGhmJ3GLtVXY9AawQhj1ZHvD1II6czCqtWu5gIQEwEly9uosFsxWOdeS Upmk6UPZJap1RhmqZQdm8Oz3DbJLg0Ppl9JntPkcvOp+9Q/s8/y2xl7F9KpBe/xgYj+F /fzQ==
X-Gm-Message-State: AOJu0YxamtwCTZ9sPgTzrzro+EbAUFvJXwbX3XyGj6a5Buf84nPk1cy8 VMGS8pBRa5Ou74Wu9lujXLFi2RvBG/ThzLlf/WJEYCHlHIM=
X-Google-Smtp-Source: AGHT+IFSt5GdIc5ry2MFDW6GDB+0DUdpyAVqHNAw7iQj0tL7ACEUVjfNk+JbcPMUhZaVSpfGlZjQmGa6mAuPAQr2BKU=
X-Received: by 2002:ac2:4ed4:0:b0:50b:f82e:6d62 with SMTP id p20-20020ac24ed4000000b0050bf82e6d62mr806866lfr.101.1702159563168; Sat, 09 Dec 2023 14:06:03 -0800 (PST)
MIME-Version: 1.0
References: <CA+isZAKPHR9r3P2wH39Y1wwscP2v7jYE96y-kx05JJvrPU33wA@mail.gmail.com> <CACweHNBa2Renrg=XbPvAaVgGUGwsrjmhMHyzNN8mbvhU_s9D8g@mail.gmail.com>
In-Reply-To: <CACweHNBa2Renrg=XbPvAaVgGUGwsrjmhMHyzNN8mbvhU_s9D8g@mail.gmail.com>
From: 姓名 <falsandtru@gmail.com>
Date: Sun, 10 Dec 2023 07:05:25 +0900
Message-ID: <CA+isZAJ0mQ0A7a5S4tmt8BP4OV4oRm_7P-qpY-Mgn_75Og0M_g@mail.gmail.com>
To: Matthew Kerwin <matthew@kerwin.net.au>, ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary="0000000000001d20ea060c1ae879"
Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=falsandtru@gmail.com; helo=mail-lf1-x132.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=falsandtru@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1rC5SZ-009cpB-T3 4637d6aa24553f71f4b76f49c86dc1b0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Key Points of Improvement of Huffman Codes
Archived-At: <https://www.w3.org/mid/CA+isZAJ0mQ0A7a5S4tmt8BP4OV4oRm_7P-qpY-Mgn_75Og0M_g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/51655
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: <https://www.w3.org/email/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>
I have been waiting for just such a starting point. Whether this proposal will be adopted should be debated on whether such a minimum cost is balanced by the return I have offered. 2023年12月10日(日) 6:57 Matthew Kerwin <matthew@kerwin.net.au>: > On Sun, 10 Dec 2023 at 07:18, 姓名 <falsandtru@gmail.com> wrote: > > > [snip] > > > > ## Are the installation costs acceptable? > > > > There are no additional costs specific to this proposal. Thus, there are > no more costs than would be incurred by other methods. If this proposal > cannot be adopted because of cost, then all other methods of improving the > compression ratio of Huffman coding cannot be adopted either. > > > > I would propose an alternative interpretation: the inherent cost of > implementing *any* change such as this is very high, so for any > individual proposal to be worthwhile it has to provide enough of a > benefit to overcome that inherent cost as well as whatever immediate > problem it is improving on. That doesn't mean they will all fail -- if > they're valuable enough they might get traction -- but it also means > you can't amortise the cost of a single change over all potential > changes. > > > ## What is the cost of the additional Huffman code? > > > > The added Huffman code is so regular that any encoder or decoder using > it should be able to convert it to simple conditionals. Therefore, no new > arrays or trees are required. > > > > There are other costs / benefit reductions: > > * the cost of implementing the new encoding scheme and distributing > the implementations, deploying software, etc. > * integrating it with the protocol, describing how and where in the > workflow it can be integrated, extension values, etc. > * verifying that the integration doesn't undo a large part of the > benefit -- e.g. the new encoding scheme potentially not being > available in the first round-trip, when much of the compression (and > thus benefit) would occur > > They may not necessarily be unique to this particular proposal, but > they still exist and must be addressed. > > Cheers > -- > Matthew Kerwin > https://matthew.kerwin.net.au/ >