Skip to content

opt(t27os): G3+G4 preallocated ring — optimization #3 (Closes #12779) - #13102

Merged
gHashTag merged 1 commit into
masterfrom
lane/t27os-prealloc-ring
Nov 2, 2026
Merged

gHashTag merged 1 commit into
masterfrom
lane/t27os-prealloc-ring

Conversation

@gHashTag

@gHashTag gHashTag commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Closes #12779.

Optimization #3: preallocated ring buffers replace the 64-entry stack arrays
in pty_fold/graph_fold_ring (G3/G4). 256-entry ring buffers
(pty_ring_kinds/pty_ring_pids, graph_ring_kinds/graph_ring_pids) are reused
on every call — no stack array allocated, no per-call clear. Batch fold (#1)
and k-hop cache (#2) are untouched.

Tests on the merged tree: G3 7/7, G4 9/9 (new preallocated-ring tests); t27b
--check clean on both specs (0 JIT/interpreter mismatches); seals saved and
MATCH. All local gates pass.

Refs #12988 — gap "land the Queen band tap ring from lane/queen-band-graph".

phi^2 + phi^-2 = 3 | TRINITY

Replace the 64-entry stack arrays in pty_fold/graph_fold_ring with
preallocated 256-entry ring buffers (pty_ring_kinds/pty_ring_pids,
graph_ring_kinds/graph_ring_pids) reused on every call. No stack array
is allocated and no per-call clear happens; batch fold (#1) and k-hop
cache (#2) are untouched.

Tests: G3 7/7, G4 9/9 (new preallocated-ring tests on both specs);
t27b --check clean on both specs (0 JIT/interpreter mismatches); seals
saved and MATCH.

Refs #12988 — gap "land the Queen band tap ring from lane/queen-band-graph".

phi^2 + phi^-2 = 3 | TRINITY
@gHashTag
gHashTag enabled auto-merge (squash) November 2, 2026 10:30
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-11-02 10:31:17 UTC

Summary

Status Count
Total Open PRs 48
PRs with Failing Checks 43
PRs with All Checks Green 5
READY 3
FAILING 43
PENDING 0
NO CHECKS YET 0

These columns do not partition: 3 + 43 + 0 + 0 = 46, and there are 48 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e75b498e5e79 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@gHashTag
gHashTag merged commit 7f9a911 into master Nov 2, 2026
38 checks passed
@gHashTag
gHashTag deleted the lane/t27os-prealloc-ring branch November 2, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EPIC] T27F Live mycelium on all 27 T27 OS petals -- the swarm's work graph visible everywhere

1 participant