From e80e47a29583d126681421364a01616d3f364d1c Mon Sep 17 00:00:00 2001 From: callmeBalloch <12576795+callmeBalloch@users.noreply.github.com> Date: Fri, 9 Oct 2026 05:13:22 +0000 Subject: [PATCH] AF.3: count distinct sample documents in the value-budget note The census behind the limit counted duplicate copies of the same public files: there are 189 distinct documents, the largest still decoding 3.3 million values. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GQPh8UDgMyARR5Hat9UchC --- crates/affinity/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/affinity/README.md b/crates/affinity/README.md index 73e35c528..ad8676f71 100644 --- a/crates/affinity/README.md +++ b/crates/affinity/README.md @@ -85,7 +85,7 @@ Every size is checked before it is allocated: 256 MiB per archive entry and 1 Gi default (`Limits`), a 64 MiB zstd window, 4096 saved revisions, array lengths no longer than the bytes left, 16 777 216 decoded values per document stream (fields and array elements together, counted before anything is allocated: a value takes about 40 bytes in memory however few it took in the file; the largest of -333 public documents uses 3.3 million), 384 levels of object nesting, 128 levels of layers, 500 000 layers, four million curve +189 distinct public documents uses 3.3 million), 384 levels of object nesting, 128 levels of layers, 500 000 layers, four million curve nodes per curve, 64 megapixels per pixel layer (cropped to its content first) and 1024 gradient stops. Every archive entry's CRC-32 and size must match. Malformed input returns an `Error`; the crate has no panics outside tests.