[Cbor] Prefix compression (Re: Review draft-bormann-cbor-tags-oid-07)

Carsten Bormann <cabo@tzi.org> Sat, 04 July 2020 11:49 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 70E163A0A87; Sat, 4 Jul 2020 04:49:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id USngr81vtI5O; Sat, 4 Jul 2020 04:48:59 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 83F453A0A80; Sat, 4 Jul 2020 04:48:58 -0700 (PDT)
Received: from [172.16.42.112] (p5089ae91.dip0.t-ipconnect.de [80.137.174.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 49zVV058VPzyVV; Sat, 4 Jul 2020 13:48:56 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <001701d651a5$ef08e6c0$cd1ab440$@augustcellars.com>
Date: Sat, 04 Jul 2020 13:48:56 +0200
Cc: draft-bormann-cbor-tags-oid@ietf.org, cbor@ietf.org
X-Mao-Original-Outgoing-Id: 615556136.197926-9254fe05c883cc76315b744606c11acc
Content-Transfer-Encoding: quoted-printable
Message-Id: <BF32663C-5B66-4DC7-ABF7-35FE47581DB8@tzi.org>
References: <000801d65169$5915dfb0$0b419f10$@augustcellars.com> <5E9374BB-8893-4CB5-9548-672BC9556E55@tzi.org> <001701d651a5$ef08e6c0$cd1ab440$@augustcellars.com>
To: Jim Schaad <ietf@augustcellars.com>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/2VPnsIOsNlfdhgHj2o48KgxMbKk>
Subject: [Cbor] Prefix compression (Re: Review draft-bormann-cbor-tags-oid-07)
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Jul 2020 11:49:03 -0000

Hi Jim,

On 2020-07-04, at 03:53, Jim Schaad <ietf@augustcellars.com> wrote:
> 
> An array of two hash functions which could be parsed into the two rooted OID values

Prefix compression is applicable to other data than OIDs (most prominently URIs).
I think we should handle that in a more generic way than specifically for OIDs.

(I had a short presentation at an IETF a couple of years ago about what I called “Tag 6 compression” because it had been around since about 2013 — I finally need to write this up.  It really works, and it is really low cost for a decoder...)

Grüße, Carsten