You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Perf: reclaim GC slab slots with per-chunk free state #102
After bounded tail trimming (#101), direct and shared object_churn profiles still spent most nursery time in sweep and GcCellBacking.freeFn. The rejected zig-gc#17 experiment proved that batching allocator dispatch/size-class locks was neutral at the 8x100 publication load: per-cell ownership classification and writing/linking one intrusive FreeNode remained the real work.
Retained design
Reusable slots now live in fixed-size per-chunk bitmaps, with a hot reusable-chunk hint per size class. Sweep no longer writes allocator links into dead cells. Tail trimming counts and removes bitmap state only for discarded chunks.
direct: 9/10 wins; 2.56x geometric-mean throughput lead over JSC
warmed 8 lanes: 2.54x lead; scaling 5.18x vs JSC 5.32x
cold 8 lanes: 2.58x lead; scaling 5.29x vs JSC 5.25x
shared 8-lane geometric-mean scaling: 4.09x
object_churn: 176.398 ms direct and 9203.183 ms shared 8-lane
The full run captured battery power at 93% and discharging, which is disclosed in the report/README. Cross-publication changes include host variation; the interleaved exact-parent A/B above is the causal evidence.
Completed on main in 4e3de6f5 with publication 24656d74. All acceptance criteria are checked above; exact-parent direct and 1/2/4/8 shared A/B retained exact checksums and improved every measured point. Follow-up fuzz/lifecycle failures that reproduce on the parent remain tracked independently in #96 and #103.
Activity
perf(gc): track reusable slots outside cells (#102)
chrisbbreuer commentedon Jul 14, 2026
Implementation is now on
mainas4e3de6f5(perf(gc): track reusable slots outside cells (#102)).What changed:
FreeNodewrites with fixed-size per-chunk bitmapsExact-parent A/B against untouched
e4b72407(checksums exact):object_churn, 100 jobs, 21 samples: 190.549 -> 177.473 ms (7.37% faster)Validation:
The full 1,540-sample JSC comparison and README/docs refresh are next; keeping this issue open until publication and CI are complete.
docs(bench): publish free-state benchmark results (#102)
chrisbbreuer commentedon Jul 14, 2026
Publication and the remaining exact-parent lane sweep are complete.
Exact-parent shared
object_churnA/B at the 100-job publication load (two alternating rounds, six samples per binary/lane, exact checksums):Published in
24656d74from measured clean commit4e3de6f5:New full-matrix headline:
object_churn: 176.398 ms direct and 9203.183 ms shared 8-laneThe full run captured battery power at 93% and discharging, which is disclosed in the report/README. Cross-publication changes include host variation; the interleaved exact-parent A/B above is the causal evidence.
chrisbbreuer commentedon Jul 14, 2026
Completed on
mainin4e3de6f5with publication24656d74. All acceptance criteria are checked above; exact-parent direct and 1/2/4/8 shared A/B retained exact checksums and improved every measured point. Follow-up fuzz/lifecycle failures that reproduce on the parent remain tracked independently in #96 and #103.