Four allocator experiments informed by published designs
The target is ordinary Rust Vec, Box, String and standard collections:
less computation and fewer metered pages, with normal lifetimes across calls
and await. These allocations remain transient. Nyxus uses a separate Heap over
the same shared page provider. See runtime memory
for the implemented system and the previous trial
for the rejected dense geometry.
The reviewed allocator combines size-class slabs with buddy spans. Small layouts through 16 KiB/alignment 32 occupy slots in spans of 256–32,768 bytes; larger or more-aligned layouts claim page runs. Classes share a 64 KiB page. Empty pages return immediately. Each slab has at most 28 slots. Free-slot links and the slab header are already in the same metered region; global buddy-list neighbors can be elsewhere. The provider keeps compact ownership metadata in one control page.
Ranked experiments
Ranks express our judgment of fit to IC costs, not measured probabilities or
published IC results. All four start independently from fd615ac2, with the same
bounded-startup patch and baseline allocation geometry. Page-local buddy metadata is selected with explicit performance tradeoffs; the final main artifacts are qualified.
| Rank | Experiment | Intended gain | Main risk | Inspiration |
|---|---|---|---|---|
| 1 | Page-local buddy bits; global bins contain pages | Split/coalesce inside the current page; avoid seven cross-page buddy-list updates on page creation/retirement | Bin moves still touch neighbors; different placement can worsen locality | Mimalloc, TLSF |
| 2 | Bounded object magazine | Reuse dropped blocks through hot metadata, avoiding some cold allocator accesses | Delayed flush can shift or increase costs and retain capacity | Magazines and Vmem |
| 3 | One-word slab slot bitmap | Replace bump/free branches and payload links with bit operations | Likely a computation gain only; slot choice changes | Mimalloc §2.2, TLSF |
| 4 | Prefer fuller partial slabs with a bounded search | Reuse existing spans, letting others empty sooner | Looking at up to four cold headers may cost more than packing saves | Hoard, Vam |
The magazine is limited to eight entries, 16 KiB summed usable bytes and one cached payload page. This does not bound a flush to one touched page: backend release may follow other allocator links. Real live-object counts remain accurate, and pressure/teardown must release cached backend reservations.
The bitmap retains the 32-byte slab header and current geometry. Fullness selection keeps its chosen slab until full/empty and examines at most four alternatives only when replacing it. Neither adds an unbounded heap scan or a message reset. No live object moves; failed realloc preserves its old allocation.
Evidence and selection
The frozen review packet contains the exact source receipt, geometry facts, paper reading limits, ranking, and magazine erratum. Its manifest pins the archive. TLSF coverage is its institution-hosted abstract and author overview; a full-paper read is not claimed. The original review's relative source links describe its original playground location; the current implementation is linked above.
Each trial must preserve alignment/zeroing, normal ownership, rollback, query isolation, awaits, checked KEEP and provider reuse. Measure 32 physical calls per common case, including generated wrappers and cleanup; record absolute page ranges as well as total instructions. Fresh calls/callbacks/timers restart page tracking. An unchanged high-water is not proof of unchanged placement.
Promising candidates then run matched complete Heavy16 for both Nyxus and Hylix,
with work, instructions, latency and memory compared against frozen controls.
A microbenchmark win alone does not select a default. The original helper retains its strict REGRESSION flags where any latency or
capacity metric rises. Selection is a separate instruction-priority judgment;
those flags are not rewritten as a universal performance pass.
Trial outcomes
All four candidates pass the common real-IC lifecycle suite: normal calls, queries, live values across await, trap rollback, zeroing/alignment/failed realloc, provider reuse and checked KEEP. Ordinary std owners retain their normal lifetimes.
| Trial | SDK allocation suite total | Full Nyxus instructions | Full Hylix instructions | Decision |
|---|---|---|---|---|
| Page-local buddy metadata | −0.390% | −8.816% | −0.803% | Selected with disclosed tradeoffs |
| Object magazine | +0.623% | +0.423% | +1.279% | Reject |
| Slab slot bitmap | Lower in all eleven cases | −1.333% | −1.553% | Reject standalone: Hylix median +1.8s, stable capacity +448KiB |
| Fuller partial slabs | +0.0817% | Incomplete | Not run | Stop on user instruction; preserve partial attempt |
SDK totals sum the same eleven cases, each measured over 32 complete physical updates after prior setup and a warm call. They are allocation histories, not isolated collection-operation timings. Page bins remove a dirty region in three cases but raise some non-page costs: the BTree96 case rises 1.68%, Hash96 1.44% and mixed1k 0.76%. The full workload, rather than that aggregate alone, chooses the default. Hylix's non-heap remainder includes stable charges, not just CPU.
The selected worktree build keeps Nyxus latency/capacity unchanged. Hylix completes 66→64 rounds, with unchanged p95 and lower maximum latency, but its median rises 19.8→20.4s and stable capacity grows 5,308,416 bytes (5.0625 MiB). These are accepted tradeoffs, not a claim that every metric improved. It performs the same 19,200 workflows, 594,000 steps and 27,600 blocks with zero traps/reoffers.
No object cache, slot-mask variant, fullness search or class-facts table is merged. The obsolete free-block type/catalog root is removed. The allocator representation marker changes deliberately; old prototype images reject before pointer access, with actual rollback checks preserved. No compatibility adapter is added.
Final main qualification
All seven selected source files match the measured candidate byte-for-byte. Nevertheless, canonical main builds differ in executable/table/data bytes from the worktree artifacts; the cause is not proven. Source identity is therefore recorded separately from failed binary identity. Both actual main artifacts pass complete matched workload and startup/KEEP checks. They reproduce the trial complete instruction/page totals exactly, despite the binary differences. The final comparison retains the strict flags; the benchmark report records the accepted tradeoffs. The final evidence packet pins the exact main artifacts, source receipts, all 203 native tests and lifecycle results.
Evidence archive and verification instructions preserve the shared fixture/control, four frozen source variants, common traces, prepared Wasms, reviews, complete workload receipts and explicit incomplete fullness attempt. Full raw Heavy16 traces remain external at the recorded original paths; the archive does not claim to reconstruct or independently sum those raw runs. It does include the strict live audit receipts and final-main comparison. The original paper review remains unchanged.