Minima writes: second optimization round

This study compares qualified 2512e70e with selected 6ad75439. The report covers all 26 families. Each case is a complete temporary lifecycle, including preparation, mutation or replacement, verification/reference work, and retirement. These are not isolated write costs.

The unchanged default matrix has 156 cases at 1/32/256/1,024 inputs. A separate eight-case SlotArena cohort compares its new slice allocator with equivalent scalar work, including the returned ID vector and reuse preparation. Both have 32 fresh awaited updates per case after warmup. The old guest accepts the mode flag but performs scalar allocation in either mode. The two cohorts have separate population histories and must not be combined as interchangeable rows.

Selected changes

  • SlotArena plans a slice in scalar free-list order, preflights headers/counts, preserves generations, then groups adjacent complete slots. FixedVec avoids no-op block retirement on pop; prefix sums encode the first node during overflow preflight.
  • Bounded dense Counting Bloom batches stage proposed counters without sorting eight patches per key; all arithmetic passes before publication. Dense Bloom construction stages its proposed image directly. Sparse policies remain useful for their different geometries and input counts.
  • Frozen hash/sorted indexes and ZOR omit zero tails under the existing all-byte-zero block-acquisition contract, including physical reuse. Fuse and Ribbon avoid clearing scratch that was just initialized; retries still clear.
  • SetSketch tightens an existing conservative cutoff after real increases; QSketch reuses its first logarithm to reject noncandidates before the second. Quantized ranks, intermediate increase counts and estimators stay unchanged.
  • Aeris uses sorted prefix lookup while retaining complete authoritative backing validation, and delegates singleton batches to equivalent scalar operations.

Other families retain their algorithms and receive matched coverage. An unchanged or slower case is not described as an optimization. None of these changes adds an undo journal, cache, format adapter or independently rooted storage system. Current authoring contracts belong in Minima.

Selection and qualification

The first combined candidate 14c503b2 and Main intermediate 5f53f02f included an HLL singleton shortcut. The broader control suite found roughly 40 additional instructions per scalar HLL update, despite a small singleton-pipeline saving. The shortcut and its added test were removed; both HLL files in 6ad75439 match the previous qualified implementation exactly. Intermediate results and audits remain evidence of the rejected tradeoff, rather than current qualification.

The selected source is built and measured again from Main. Per-function write and existing-operation comparisons retain every positive delta and observed page-fee change. Controls distinguish installed artifact/source identity, complete endpoint instructions, body Counter0, committed heap regions, discarded attempts and API/copy work. No no-op cost is subtracted. A heap-fee remainder is not a CPU-only measurement. Timings from concurrent hosts do not establish application latency.

Native models include poisoned physical reuse, generation/free-list cycles, arithmetic rejection before mutation, exact scalar bytes and backend failures. Canonical actual-canister gates check KEEP, contract rejection, rollback and continued writes. RRT/Nyxus/Hylix qualification is reused only through unchanged dependency trees and artifact pins; this study does not claim a fresh Heavy run.

Evidence preserves source pins, raw accounting, checks, rejected candidates and explicitly omitted material. The predecessor packet is referenced by hash instead of duplicated. The current platform/IC interpretation and measured server/configuration remain separate evidence inputs.