[Cbor] Re: Early allocation for packed CBOR (Re: Reminder: CBOR WG Virtual Meeting on 2024-12-11)

Michael Richardson <mcr+ietf@sandelman.ca> Wed, 11 December 2024 16:32 UTC

Return-Path: <mcr+ietf@sandelman.ca>
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 91EC3C169435 for <cbor@ietfa.amsl.com>; Wed, 11 Dec 2024 08:32:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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=sandelman.ca
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 FxcBBRowyLMo for <cbor@ietfa.amsl.com>; Wed, 11 Dec 2024 08:32:45 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5AC57C16940A for <cbor@ietf.org>; Wed, 11 Dec 2024 08:32:44 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 6A42D1800D; Wed, 11 Dec 2024 11:32:43 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavis, port 10024) with LMTP id s-q8S2wJRq5O; Wed, 11 Dec 2024 11:32:41 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandelman.ca; s=mail; t=1733934761; bh=R2+5bvLaT8QcxtYNm4eJaL/Ze3VYhI2UX7A5DG6JFtY=; h=From:To:Subject:In-Reply-To:References:Date:From; b=eJrK9iUS81EkHrPY7Z0ybtvGXScu3YWYzLekbcKR2nDzZbe+ucCOGBOgOUq1J2Euc tYX7GpFk7ooXnqG3G4LPv/zgKV19FpN8Pyq+oqEyJv3yyxEp4Py2jJY4ORUswiY3oe FEzbP1bVMeb30MvZmDhqCBzrEvqIzvsfW0qfQTtZ+0g0JAe//vgONi32RUz5wdzYDN VGbtdolQAXyXHEFBMLYUaQp6VeIcudHYgf0KJHcngteabGFGmn27GAS+fAMYTPP6Bl 9Y7umx00Cku3yAFep/+m8LCnI/JZdumd8hsE/riNssIW2JBJbBZRTZUMCNoB5zEMAe YCG5w0rFKekwQ==
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id 939091800C; Wed, 11 Dec 2024 11:32:41 -0500 (EST)
Received: from obiwan.sandelman.ca (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 42AD351; Wed, 11 Dec 2024 11:32:41 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Joe Hildebrand <hildjj@cursive.net>, CBOR <cbor@ietf.org>
In-Reply-To: <98C6BEDA-C4B2-4657-ABE2-19FE637CE782@cursive.net>
References: <CALaySJKDFscUBGw4CPspXJvUTkXywVHc_FrmhO3ybBWTrwjGXw@mail.gmail.com> <CALaySJJ8-M9x8irtmF2pfDE3GRXU1am9n2a3XeDcmPT+kww+KA@mail.gmail.com> <CALaySJKTQT_9CC-wVVd+fY1NYJ73M8CP22hn=rWrFeTJSJDEsA@mail.gmail.com> <CALaySJKG3oagg6ffLTx8LgvLvnjHHA2DMGgY74E0q=rReAc4PA@mail.gmail.com> <CALaySJLtUR1=G_WH4H+zoJ5LCrHjBgEf1oW104zDtFQighY+gg@mail.gmail.com> <CALaySJLnKxU9m3BNPq4XayrSrorRBG2vuBz1AF-CsEBoSZe7Xg@mail.gmail.com> <CALaySJKaz7C=GN5E=saiDY4KxL+9xCfM0ocZuMStEQ96FnQ4KA@mail.gmail.com> <CALaySJJEXkey9vLAp8VqDXmPsWpxiWN9jjtVnGio1nMQ4K+mDQ@mail.gmail.com> <CALaySJJfc+tET4Vm5UQjHPK5mf61O0iR-1i6=X32CYtWxZLWTQ@mail.gmail.com> <CALaySJKdrk7aPzhT=kbE1B8pq1EBw74nmx_peSJMAoHsG5jyVQ@mail.gmail.com> <CALaySJ+fWX4zEnE5v-Q9R6eCv=kSJjnc-fsXL5PGPgac1GJAcA@mail.gmail.com> <B807C9D3-39A4-4024-BC1D-85DD84EA1735@tzi.org> <DFE56705-CCDD-4172-B577-C873E3DB4898@tzi.org> <5FEA5C07-4A39-4B58-B2AE-F261D111FCE6@cursive.net> <D0618F67-4868-4745-A526-F73DF1A98E1B@tzi.org> <98C6BEDA-C4B2-4657-ABE2-19FE637CE7 82@cursive.net>
X-Mailer: MH-E 8.6+git; nmh 1.8+dev; GNU Emacs 28.2
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0;<'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha512"; protocol="application/pgp-signature"
Date: Wed, 11 Dec 2024 11:32:41 -0500
Message-ID: <25923.1733934761@obiwan.sandelman.ca>
Message-ID-Hash: MY3KAN2G3VQTNT2VN2IUK3CAZS6ZDOWU
X-Message-ID-Hash: MY3KAN2G3VQTNT2VN2IUK3CAZS6ZDOWU
X-MailFrom: mcr+ietf@sandelman.ca
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Cbor] Re: Early allocation for packed CBOR (Re: Reminder: CBOR WG Virtual Meeting on 2024-12-11)
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/X4rPGo6ZCIvfc9e515gSaYIXZnc>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>

Joe Hildebrand <hildjj@cursive.net> wrote:
    > I do not agree that 335 million tags, including most of the remaining
    > 1+1 tags is worth the functionality here.

I consider only the 1+0 and the 1+1 tags in my calculation of size.

The other categories are very plentiful, and I think that packed CBOR has
done a good job of rationing it's use of the most valuable resources.
Could we use fewer resources?  Yes, we could move things to longer tags, and
maybe it's worth looking at what the resulting sizes are.

(Also unwell for a few days, missed the meeting an hour ago)

    >> Here is today’s tag-report:
    >>
    >> range  used     %                 free                total
    >> 0 1+0    13 54.17                   11                   24
    >> 1 1+1    73 31.47                  159                  232
    >> 2 1+2  1087  1.67                64193                65280
    >> 3 1+4 65539  0.00           4294836221           4294901760
    >> 4 1+8     2  0.00 18446744069414584318 18446744069414584320


--
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
           Sandelman Software Works Inc, Ottawa and Worldwide