Repository navigation
perf: vendor signal graph and trim retained class methods - #1986
Merged
trueadm merged 5 commits intoOct 11, 2026
Merged
Conversation
domgan-oai
marked this pull request as ready for review
October 10, 2026 23:26
Contributor
Benchmark report🟢 No byte growth, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)No changes across 60 measured values. Public-import reachability bundles (bytes)
108 other measured values are unchanged. |
5 of 8 tasks
6 of 7 tasks
trueadm
added a commit
that referenced
this pull request
Oct 12, 2026
Octane vendored the Alien Signals graph in #1986, so its source no longer imports alien-signals. The devDependency only fed resolvers that now see nothing to resolve: - the native-collection browser test aliased alien-signals for a fixture that only imports octane and octane/signals; - the conversation-streaming and local-void-roots audits recorded its version in toolchain provenance (the void-roots audit requires matching lockfiles, so its sources are post-vendoring too). The scheduler backlog scripts accept an archived source checkout, which may predate vendoring, so they now resolve Alien from benchmarks/scoped-signals, which owns the comparator dependency since #1986. Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Vendor the Alien Signals 3.2.1 graph into Octane's existing signal engine and make unused signal features easier to tree-shake. Twenty internal class methods/getters become direct helpers or are folded into existing callers; graph flags remain primitive numeric constants in production output.
The public signal API, graph algorithms, scope ownership, notification order, and action integration are preserved. The upstream MIT notice and immutable source revision are included. The benchmark package now owns its Alien comparator dependency and checks external and vendored engines explicitly. Octane retains Alien Signals only as a development dependency for repository browser tests and archived comparisons; it is absent from production dependencies.
Complete production JavaScript sizes for integrated head
4d0e0c75against current base4ff7d0da(both sides rebuilt before the 0.13.0 release integration; signal implementation remains unchanged at current head38adefc18):Validation
pnpm sync; generated binding/corpus changes only update lock hashes.pnpm typecheck:files: 13 source/test/fixture files after integration, including the imported.tsrxfixture explicitly so the scoped checker enables JSX.git diff --check.8c09d815vs the pre-integration vendoring snapshot): eight balanced four-version groups, 32 fresh processes, identical counts and semantic checks. The final candidate has no resolved slowdown interval versus baseline, including either execution order. Dynamic sparse writes are 2.44% faster (interval -4.93% to -1.26%); dynamic batches have a -4.31% point estimate (interval -5.38% to +0.13%).4ff7d0dawithout conflicts. Independent source review verified the exact union of vendoring and incoming pacing/unwind/compiler changes; 1,085 fresh integration test executions passed (493 development, 493 production, 99 Node), plus 46 benchmark boundary/workload cases.38adefc18against release basee4d5908, including full lint/types/tests, browser integration, parity, publishable packages, frozen installation, release-plan validation, and CI provenance. Sync and independent source/metadata review also pass.hydrate-framedown 410 gzip bytes.pnpm format:check,pnpm typecheck, and shardedpnpm testpass in CI; local checks remain the scoped runs above.perf-review: fixed-base mechanical scan reports zero candidates. Independent structural review found no new instance fields, receiver types, per-node allocations, DOM operations, or scheduling hops. The existing action bridge retains one module-time flag table. The owning Node and browser checks detected no regression within their measured scope.concise-code: runtime source +721/-490 across six files, no new production module; six direct internal helper exports and the narrowed graph type each have current callers. Kernel-only vendoring saved 103 Oxc gzip bytes in the engine fixture; moving retained class members accounts for the larger reduction. Replacing object/prototype/lifetime ownership more broadly would change existing identity contracts.Risk / follow-ups
The measured compiled fixture reduction is below the proposed 5–6 kB target. The complete-bundle Oxc gzip saving is 820 bytes (16,633 to 15,813 bytes, 4.9%); the 4,475-byte figure is uncompressed JavaScript. Ordinary row bundles are byte-identical.
Two upstream recomputation-count expectations already differ on the baseline and remain unchanged. Transferable graph behavior is covered through Octane's public API; Alien's eager-effect API is not emulated. Descriptive and bounded-cycle observations are recorded separately from assertion passes.
Timing trials retain their original fixed baseline; they were not rerun after the upstream integration. The refreshed size builds and focused integration tests cover the current head separately.
Browser intervals remain wide: some primary intervals allow approximately 12% slowdowns, and the order partitions are wider. These measurements do not establish equivalence. Identical-code lifecycle drift remains in the analysis without subtraction. Browser measurements cover synchronous DOM work; layout, paint, physical devices, and cold startup remain unqualified.
The completed browser run retained seven checkpoint-upload aborts, each recovered once outside the measured window without repeating or excluding a sample. Earlier failed and diagnostic runs are preserved separately. Full package/native-DOM publication smokes were not run in the focused benchmark-repair queue. The local release-plan command could not load its cached Changesets dependency after integration; current-head CI passed that check with a frozen installation. The optional initial-document historical report reaches its unchanged lockfile-mismatch guard and is not claimed as a passing report. Local workspace lock generation is blocked by an unrelated managed-registry TypeScript-plugin version; the exact existing Alien 3.2.1 dev importer was edited directly, and final-head frozen installs passed across all 18 dependency-installing CI jobs.
Provenance
agent-authored).Codex task · implementation host: local.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Medium Risk
Changes the core reactive graph implementation and bundle boundaries; behavior is intended to match Alien 3.2.1 but risk concentrates in invalidation, batching, and streaming paths despite expanded tests.
Overview
Octane no longer depends on
alien-signalsat runtime. The Alien Signals 3.2.1 dependency graph is vendored intograph.ts(with LICENSE attribution), andalien-signalsmoves to devDependencies for benchmarks and browser tests only.Internal signal code is refactored for smaller bundles: scope lifecycle, node creation, declaration helpers, read suspend/resume, resource streaming, and facade supersede/
__declaredlogic are lifted out of class methods into module-level functions so unused paths can tree-shake. Benchmarks now default tooling tobenchmarks/scoped-signals, pin Alien 3.2.1 for archived comparisons, and assert vendored vs external engine boundaries per manifest.Coverage: new Vitest suites exercise subscription batching, feedback, and graph edge cases against the inlined engine.
Reviewed by Cursor Bugbot for commit 38adefc. Bugbot is set up for automated code reviews on this repo. Configure here.