Repository navigation
improve(build): cut measured full-build time by 51β59% - #165271
Conversation
|
π¦π Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 3:10 PM ET / 19:10 UTC (Revision 8). ClawSweeper reviewWhat this changesThe PR compiles public TypeScript declarations once during full builds, retains a separate SDK-only build, and updates build selection, tests, and CI documentation. Merge readinessβ Ready for maintainer review This PR remains useful: current main still compiles partitioned declaration graphs. The reviewed changes and preserved real-build evidence support the optimization, with no actionable introduced defect found. The failing dependency-audit gate remains a landing constraint, not a patch finding. Priority: P2 Review scores
Verification
How this fits togetherOpenClawβs build pipeline turns source code into runtime bundles and public type declarations used by package and plugin consumers. The declaration owner selects compiler inputs, validates generated output, and publishes or restores the resulting artifacts. flowchart TD
A[Source and public entrypoints] --> B[Build profile selection]
B --> C[Full declaration program]
B --> D[SDK-only declaration program]
C --> E[Compiler and input validation]
D --> E
E --> F[Validated artifact publication]
F --> G[Package and plugin consumers]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -38, Docs 0, Other -72. Total -110 across 18 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Use one validated full declaration generation and retain the SDK-only profile, with existing diagnostic, publication, and cache safeguards. Do we have a high-confidence way to reproduce the issue? Not applicable to a runtime bug: source and recorded real builds establish repeated declaration compilation and the measured optimization; no builds were executed during this read-only review. Is this the best way to solve the issue? Yes. Consolidating overlapping inputs at the existing declaration owner removes repeated work while retaining SDK-only selection and the established validation boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cc7e664dfe34. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
|
@clawsweeper There is no constrained builder issue: There was no difference in GHA build times, as far as I can see, as it appears that GHA handles this different can local builds (skipping the problem). |
|
π¦π Command router queued. I will update this comment with the next step. |
32f47ef to
108fbef
Compare
|
Thanks @huntharo for the build optimization and careful measurement work. The maintainer follow-up at The warmer remains unchanged. On merge-base Proof: secretless Docker cold full build on 4 CPUs / 16 GiB with no swap exited 0 in 303.28 s, cgroup peak 11,280,527,360 B, no OOM. Node 24 CI full-profile proof also passed on Exact-head ClawSweeper is terminal/ready, with no actionable findings or before-merge items. Exact-head CI failed |
|
π¦π Re-review progress:
|
|
Maintainer override for unrelated red CI on exact head 11922ed:
Everything else is green, and the exact-head ClawSweeper review is ready. The full-profile merged declaration compile passed cold on a GitHub-hosted runner in run 37508047355 (job 112422341862, declaration step 2m 35.8s, 8 GB heap) and in a 16 GB / 4-CPU container (11.28 GB peak). |
Full builds compiled the public type declarations in seven partitions whose inputs overlap heavily, so most of the program was type-checked seven times. They now compile once across all 198 public entry points. A separate SDK-only declaration compile stays for `build:ci-artifacts` and `build:plugin-sdk:dts`, and the two-compile concurrency logic is removed (net -74 production lines). Build selection rejects choosing both declaration setups, and `resolveTsdownBuildInvocations` now always normalizes `OPENCLAW_RUN_NODE_SKIP_DTS_BUILD` for main-config builds. Proof: a cold full-profile build passed on a GitHub-hosted runner (run 37508047355, declaration step 2m 35.8s, 8 GB heap) and in a 16 GB / 4-CPU container (exit 0, 11.28 GB peak). The author's measurements show full builds 51-59% faster. A warmed full-build cache never satisfied the CI SDK-only build on main either, so CI's declaration caching is unchanged.
Problem
Full builds repeatedly compile overlapping TypeScript declaration graphs. This PR compiles the full public declaration graph once, while retaining a separate SDK-only program for CI artifact builds.
Changes
OPENCLAW_RUN_NODE_SKIP_DTS_BUILDto"0"or"1"from the resolved declaration choice inresolveTsdownBuildInvocations, so config construction agrees with CLI flags, explicit main-config selections, and watchers. Explicit non-main configs retain their original environment.signature-mismatchin fresh CI-artifact consumers. The merge-base9f4a64d5b1also misses both SDK partition caches withsignature-mismatchafter the same full-build-cache-only transfer. There is no demonstrated loss of a working warmer-to-CI cache hit; adding an extra CI-artifact build would add cost and is not included.Evidence
Contributor measurements (historical revisions and caveats preserved below):
The current cold run used Node 24.16.0 and
NODE_OPTIONS=--max-old-space-size=8192. Its cgroup also included dependency setup before the build (setup peak was below the final build peak). This is local ARM64 Docker evidence, not a CI-runner cgroup measurement. Separately, Node 24 CI-runner proof checked out108fbef92a63f42dcd47963820f554d0cd700caf, ran cold fullpnpm buildwith the same Node heap setting, and passed: full declaration cacherecord-unavailable, writer 2m35.8s, no OOM. The pushed follow-up changes comments only; no build behavior changed after that CI proof. Historical timings are not measurements of the current rebased head.tsgoscript and root-test lanes passed;git diff --checkpassed.108fbef92a63f42dcd47963820f554d0cd700caf: transferring only the full-build cache into a pristine same-head consumer gives SDKrecord-unavailable, matching the observed CI run. The attempted SDK-only seeds produce a record but still miss on signature; no zero-compiler cache hit is claimed.build:ci-artifactsexited 0 in 170.93 s, with bothopenclaw-dts-plugin-sdk-1and-2loggingsignature-mismatch(SDK writer 1m42.5s). The full and CI profiles have different generated resolution namespaces, including AI declarations/hashed JS anddist-runtimedeclaration links. This baseline run was for cache provenance, not a controlled performance comparison.listReplaceableTsdownDeclarationOutputsincludes all 151/151 emitted SDK entry declarations, so full declaration publication can replace the SDK-only generation.No overlap with Pash/Sarah changes in the maintainer follow-up files.
Thanks @huntharo for the build optimization, measurements, and detailed original evidence.
Original contributor PR description (preserved in full; historical claims apply to its listed revisions)
Thanks for your work on OpenClaw. I ran into long build times while working on the project and investigated the repeated TypeScript declaration compilation.
What Problem This Solves
Full source builds repeatedly compile substantially the same TypeScript declaration graph, extending complete builds to 10β20 minutes on the tested machines.
Related: #98757 (declaration reuse), #157783 (native compiler memory).
User Impact
The complete
pnpm buildtook less than half as long on both tested hosts. Both revisions completed successfully, including runtime bundling, public declarations, UI, and final CLI metadata.The Mac ran macOS 26.6.2 (25G83); Linux ran kernel 7.0.0-34-generic. Both hosts used Node 24.21.0, pnpm 12.5.1 and native TypeScript 7.1.0-dev.20260920.1. Comparisons are within each host, not between machines. Dependency setup was excluded.
Linux qualification: declaration programs and caches were fresh, but
dist-runtimeand two generated viewer assets remained between runs. Its full-build timing and aggregate-memory comparisons are provisional. The Mac measurements used genuinely fresh worktrees. Neither result promises the same speedup on other hardware.No declaration-memory increase was observed in the successful Linux pair. Both revisions failed on the smaller 5.26 GiB and 7.22 GiB VM tiers; this change does not establish support for successful builds at those memory sizes.
Why This Change Was Made
The seven nonempty public declaration programs repeatedly consume overlapping inputs. This change compiles their existing 198 public roots in one program and removes the subsequent SDK writer from full, package and smoke builds. SDK-only and CI artifact builds retain a separately selectable SDK program. Runtime bundling and AI/workspace package builds remain separate.
The speedup comes from eliminating repeated compiler work while retaining type checking and declaration publication checks. The diagnostic categories, compiler settings and tested failure cases are detailed below.
The tradeoff is coarser cache invalidation: a change to any consumed full-program input invalidates the full declaration generation. Full and SDK-only caches remain distinct; default caches remain worktree-local, with opt-in sharing through the existing
BUILD_ALL_CACHE_ROOT.Earlier upstream work deliberately partitioned declarations to address OOMs under a different compiler/source graph. The smaller-builder history and current memory measurements are recorded below.
Evidence
Declaration work removed
These writer stages are included in the total build times above.
Output coverage
.d.tsfiles, including shared chunks, MacinputsClean=trueinputsClean=trueEntrypoint coverage and tested consumer compatibility are preserved. Bundled chunk layout changes, so this is not a byte-identity claim between baseline and candidate or exhaustive equivalence of every public type.
The separate candidate cross-worktree cache test did establish byte identity: all 440 restored declarations matched the seed generation, with the same 198-root/18,029-input receipt and zero compiler invocations.
Error detection and publication checks retained
This change does not disable type checking or relax the listed declaration checks. The native emitter still collects configuration, program, global, syntax, binding and semantic diagnostics and rejects diagnostic or emit failures. It still forces
noCheck: false; the existingstrictandskipLibChecksettings are unchanged.TS2322, missing-exportTS2305, syntaxTS1109/TS1110, and invalid configurationcheck-plugin-sdk-exportsandcheck-cli-bootstrap-importsremain in full build plansSource comparison confirms that the native emitter, diagnostic collector, root TypeScript configuration, input snapshot/boundary, declaration publisher, sanitizer, and SDK/CLI check implementations are unchanged. The focused tests exercise these protections through the existing build and consumer paths. This supports the named protections exercised here; it is not an exhaustive proof that every possible program produces identical diagnostics after graph consolidation.
The benchmark did not add or alter tests. No whole-repository test sweep or Windows build is claimed. The validation above comes from the recorded exact-revision builds and focused tests.
Differential defect-detection campaign
No baseline-rejected defect was accepted by this PR in the eight demonstrated classes below. A bounded campaign compared exact baseline
e9edda349faee43c13244cf3f4547fcbcb9c37fewith exact candidatea579a1b15f2a8ce13933294ebb2111e0a2324ad1. It passed 44 observations: 20 intentional rejection executions and 24 valid controls. The harness passes by asserting that defective inputs fail; every counted valid control compiled successfully.TS2322TS2322TS1109TS1109TS2305TS2305TS4094, relatedTS9027TS4094, relatedTS9027TS2717, relatedTS6203TS2717, relatedTS6203TS6046TS6046TS2322TS2322TS2322, diagnostic chainTS2442TS2322, diagnostic chainTS2442Each arm used its own unchanged config, grouping, writer, diagnostic, publication and cache owners from immutable Git blobs. Both used physically copied, byte-identical TypeScript
7.1.0-dev.20260920.1compiler trees under Node26.10.0. The synthetic graph had the same 157 selected roots: 151 SDK, one base and five plugin roots. The full declaration boundary executed the declaration-writer steps selected by each revision's realresolveBuildAllSteps("full"), throughrunBuildAllStepsand normal dist ownership: eight baseline invocations/seven nonempty programs versus one candidate program. These are bounded declaration tests, separate from the complete production-build measurements above.Failed-publication observation: the candidate preserved its complete previous dist/cache generation on every rejected rebuild. Both revisions preserved cache generations. In the stale-SDK case, the baseline's successful non-SDK writer removed prior SDK outputs before its subsequent SDK writer rejected; the consolidated candidate preserved the complete previous generation. No invalid SDK or cache generation was published. This records an existing baseline limitation rather than an additional unrelated fix.
This campaign is PR evidence, not a new revision-pinned recurring CI suite. Its small synthetic contents do not prove every production graph, cross-root ambient/module-augmentation topology, or future compiler behavior. The ambient-conflict case uses declarations within one transitive module. Initial setup/partial-boundary attempts and a base-to-SDK positive control already rejected by baseline were excluded from the 44 counted observations; the counted nominal consumer controls both use the same SDK public type.
GitHub Actions and check routing audit
All 111 tracked workflow files and 35 tracked action files have identical paths, modes and Git blob IDs between the same baseline and candidate.
package.jsonand TypeScript checking configurations are unchanged. Separate production, test and script type-checking/lint routes and theopenclaw/ci-gateimplementation remain unchanged. The audit did not inspect live GitHub branch-protection settings.The effective
ciArtifactsprofile retains its steps, runtime-only bundling override, SDK-only roots, bootstrap checks and SDK export gate. Its declaration grouping consolidates into one SDK program. Full/package/smoke profiles remove the repeated SDK writer because the full program now includes those roots; their export/bootstrap checks remain. Compiler diagnostic collection and publication/input-sealing owners are unchanged. This source audit supports the named retained contracts; the executed negative controls above establish the listed defect detections.Reproduce the workflow/action identity comparison
Both revisions have workflow tree
793776b49ddb8d33fd39d1aa7d436058023c3212and action tree550be032e735d2aa1f13868fb07e6dca13652b56. Later unrelated changes on upstream main were excluded from this exact-revision comparison.Linux memory: aggregate and process measurements
The process and aggregate metrics answer different questions. Cgroup accounting includes descendants, charged cache/kernel memory and a small measurement worker; RSS is per process. Stage samples were taken every 250 ms. The single pair, retained generated outputs, natural filesystem cache state and background workload mean these observations do not establish a causal or portable peak-memory reduction. The Mac cold runs recorded largest-process RSS around 8.8β9.3 GiB, not aggregate memory.
Inherited CI dependency audit, resolved from upstream
Prior head
32f47ef4133b149913329a45581f63cbee25fc5dpassedbuild-artifactsbut failed the production dependency audit for[email protected], GHSA-68fv-2mgg-jv7q. The current branch is rebased onto upstream main9f4a64d5b1309fd8190fa92fa2060dc3381bda5a, which includes upstream's merged fix #165902, commit9c66e8f40532ffb29b658283168f3034f0f06c62. The workspace override and lockfile now pin patched[email protected]with upstream's exact-version release-age exception; the production audit remains enabled.The actual
node scripts/ci-production-audit.mjsentrypoint passed locally on the rebased branch: npm bulk returned no HIGH-or-higher production advisories. Frozen lockfile-only validation passed all 1,710 supply-chain entries; the dependency pin guard checked 716 specs across 198 tracked manifests with zero violations. The lockfile, workspace settings, package scripts and workflows have no PR-specific changes relative to the rebased upstream main. CI for the new head is pending.Exact revisions
e9edda349faee43c13244cf3f4547fcbcb9c37feba458ece69c6944c96a381a4b7b4be9e93f6b47f85bdef58103068cd0e93f01a4a3dd2e402586ee6ab36e67b4db7c5bcbfec791532ced5a5535c1a7ca579a1b15f2a8ce13933294ebb2111e0a2324ad132f47ef4133b149913329a45581f63cbee25fc5d108fbef92a63f42dcd47963820f554d0cd700caf9f4a64d5b1309fd8190fa92fa2060dc3381bda5ae72e0807acfa8c7ee3fa1fe429cc59e9d6c1c6e4The rebased benchmark candidate's sole parent is the exact baseline. Rebase changed ancestry without changing measured source: the candidate-to-candidate diff is empty. Dependency manifests, workspace configuration and lockfile match between the baseline and candidate. Local HEAD, the fork branch and the PR head were verified equal; the worktree is clean.
Commit
a579a1b15f2a8ce13933294ebb2111e0a2324ad1added only the CI lint repair intest/scripts/tsdown-declaration-resolution.test.ts: the SDK fixture wrapper keeps its environment argument optional and delegates the default to the existingrunWriterhelper. That commit left production and build sources unchanged from the benchmarked candidate. The timings remain measurements of the exact benchmark revisions above.Test-helper repair validation: targeted root-test lint, formatting and diff checks passed.
node scripts/run-vitest.mjs test/scripts/tsdown-declaration-resolution.test.ts -t 'uses local explicit references and seals real inputs' --maxWorkers=1passed both selected SDK/unified cases (23 other cases unselected by the filter); harness wall 13.24 s, Vitest 12.13 s. No test cases or CI commands were added. Full-build benchmarks were not repeated for this test-helper-only change.Historical upstream conflict repair: commit
32f47ef4133b149913329a45581f63cbee25fc5dmerged upstream maine72e0807acfa8c7ee3fa1fe429cc59e9d6c1c6e4. The single textual conflict inscripts/tsdown-build.mtswas resolved by retaining both removals: upstream's redundant heap helper and this PR's retired partition-concurrency helper. Upstream's direct memory-budget calls, output scanning and managed-child cleanup remain. The optimization delta still covers the original 18 paths; it introduces no workflow/action, package-script or root TypeScript-configuration changes relative to the integrated main.An independent review found no merge-repair regressions. The eight focused build-plan, writer, native-resolution and artifact-ownership files passed 286 tests with three Windows-only skips (Vitest shard 342.83 s); targeted script lint, formatting and diff checks passed. No new test cases were added by this repair. Full-build benchmarks and the 44-observation differential campaign were not repeated after integrating upstream; those results remain historical evidence for their listed exact pins.
Current rebase validation: the declaration/build owners and all eight focused test files are byte-identical to the prior head that passed 286 tests with three Windows-only skips. The rebase reapplied the already-reviewed conflict resolution. That focused proof was reused; the live production audit and frozen dependency checks were run for the new lockfile. Full-build benchmarks and the differential campaign remain evidence for their original exact revisions, and were not repeated after rebasing.
Timing protocol, individual runs, cache behavior, and validation command
Hardware: Mac14,6 / Apple M2 Max / 12 CPUs / 32 GiB RAM.
/usr/bin/time -land a monotonic harness recorded each command, with load, memory-pressure,vm_stat, and swap observations before/after. The RSS column is the largest process, not aggregate subprocess memory. Builds, setup, and tests were serialized. No OS caches were flushed, shared pnpm store cleared, unrelated process killed, or build admission/ownership fence bypassed.All six owned worktrees used
pnpm install --frozen-lockfile, identical dependency versions, and lock SHA-256a5ab3b496b8d21308fa04bf907a0f7eeab38ad055c5abe766becc4a5d7a3f029. Install/setup time was measured separately; the first install took 42.87 s including downloads, and subsequent installs took 5.97β9.27 s. Node 24.21.0 was explicitly selected because the machine's default Node 24.14.1 was below the supported floor.Cold means a new owned worktree with no
distor build cache. Run order was B1 β C1 β C2 β B2. Every run below exited 0 using the default fullpnpm build, without private-QA, runtime-only, or update selectors.AI/packages phases also perform runtime bundling and are separate from the changed public declaration writers. Cold full-build spread was 61.03 s / 9.9% of the baseline mean and 1.30 s / 0.52% of the candidate mean. Paired full-build ratios were 2.58Γ and 2.33Γ. Initial baseline load included setup activity (1-minute load 11.89 β 4.25); later cold-run endpoints were 3.14β5.40. Swap usage fell from 2345.81 MiB to 2329.81 MiB, then stayed flat.
Unchanged same-worktree full builds:
The first warm run is a state transition: AI/package cache hits switch to runtime-only bundling, changing generated JS filenames under workspace aliases and invalidating conservative declaration namespace signatures. Both revisions exhibit it. The second warm run restores correctly. The settled warm comparison is one pair, not repeated-run statistics. Open #138385 targets this separate cache-stability issue.
A genuinely new candidate worktree used its own default
.artifacts/build-all-cache, loggedrecord-unavailable, and rebuilt in 252.53 s. Default caching therefore does not automatically reuse another worktree's artifacts.For explicit sharing, two additional clean candidate worktrees used one task-owned absolute
BUILD_ALL_CACHE_ROOTand ran:The seed missed and compiled once in 104.50 s. The clean consumer restored the complete generation in 10.84 s, with zero compiler invocations and no copied
distor cache directories. These are standalone declaration-writer times, not full-build times. The baseline timing comparison above includes both its full and SDK writer stages.Focused validation ran outside measured build intervals:
Eight files passed: 288 tests passed / three Windows-only skips; harness wall 158.81 s. Coverage includes config/build plans, full/SDK cache selection and invalidation, failure preservation, native declaration consumers/resolution, and output ownership. No tests were added or changed for the benchmark. No whole-repository test sweep or Windows build is claimed. The Linux full-build results and their separate limitations are recorded in the Linux evidence section.
Linux protocol, exact memory accounting, output checks, and smaller-VM results
Host: Linux 7.0.0-34-generic, ARM64, six vCPUs, 16,181,084,160 B (15.07 GiB) physical RAM and 4,294,963,200 B (4.00 GiB) swap. Each exact revision ran once, sequentially, baseline then candidate:
This explicitly approved Node heap allowance doubles the earlier 4352 MB attempt's allowance; it is not a measurement of default heap settings.
GOMEMLIMITandGOGCremained unset. The Node override does not cap the native Go TypeScript compiler.Both builds completed final CLI metadata with exit 0. The baseline had eight public writer invocations/receipts (seven nonempty programs, one empty partition); the candidate had one. All 198 public declarations, including 151 SDK entries, were nonempty. Both exact-head stamps recorded
inputsClean=true.The retained
dist-runtimedirectory and two generated viewer assets prevent calling this a perfectly cold full-output comparison. Main declarations and their compiler receipts/cache roots were fresh, and all declaration cache lookups missed.The exact whole-build cgroup memory peaks were 11,376,349,184 B baseline and 10,525,024,256 B candidate. Stage sampling every 250 ms recorded initial public declaration aggregate peaks of 11,360,845,824 B and 10,523,209,728 B, and native compiler RSS peaks of 9,184,444,416 B and 8,527,298,560 B. Baseline's subsequent SDK stage sampled 9,089,835,008 B aggregate and 6,742,310,912 B native RSS.
GNU time reported largest-process maximum RSS of 9,036,148 KiB and 9,404,684 KiB. The corresponding largest sampled runtime Node children used 9,251,688,448 B and 9,612,697,600 B, identifying runtime bundling as that maximum. User/system CPU time was 1269.72/189.98 s baseline and 566.73/142.84 s candidate.
Each build used a separate task-owned systemd scope. The observer remained outside; a small worker held the scope until final kernel counters were read. Cgroup accounting includes all descendants, charged file cache/kernel memory and that worker. GNU RSS is a largest-process metric; stage samples are lower bounds sampled every 250 ms. Summed RSS was not substituted for aggregate memory. All effective cgroup memory/swap limits were unlimited, both build scopes had zero swap peaks and zero OOM event deltas, and kernel queries found no OOM entries.
Both CLI bootstrap and SDK export checks passed, both exact-head build stamps recorded
inputsClean=true, and all 198 public declarations including 151 SDK entries were nonempty. Both builds completed final CLI metadata. Both UI budget reports printed the same startup-JS gzip violation (365.0 KiB versus 364.7 KiB); the default full build continued and exited 0. These are successful builds, not a claim that every budget report was green.Available RAM at baseline/candidate start was 13,026,013,184 B / 12,809,457,664 B. Normal desktop and background workloads continued; no Gateway was identified. Unchanged package work took 93.1 s / 222.4 s, runtime bundling 34.5 s / 43.5 s, and UI work 55.5 s / 17.0 s. These variations limit full-build timing attribution. No workloads or OS caches were normalized. The tiny system swap changes were outside the build cgroups.
The pair reused the same complete task-owned frozen install, with isolated linking and clone-or-copy imports. No reinstall or dependency upgrade occurred between arms. Separate empty build cache roots were used; main, package and extension outputs, native protocol outputs and compiler receipts were cleared. The retained outputs noted above limit the full-build comparison. Install-generated Kysely inputs were preserved identically; disk capacity was sufficient.
Earlier separately authorized pairs used the same exact revisions:
The default refusals occurred before compilation because both resolved heaps were below the 4352 MB admission floor. On the 5.26 GiB tier, attributed OOMs truncated builds after approximately 1083.90 s / 341.34 s, with cgroup RAM peaks 4.37 / 4.42 GiB and swap peaks 3.34 / 3.07 GiB. Those are independent peak counters, not simultaneous RAM-plus-swap totals. On the 7.22 GiB tier, aggregate OOM-truncated peaks were 6,551,916,544 B / 6,720,172,032 B. Neither smaller tier completed the required outputs; different ambient starting conditions and OOM truncation prevent causal memory ranking or speedup claims. No candidate-only failure occurred against a passing baseline.
Related merged, open, and closed work
The history shows continuing demand for this work, with real memory and declaration-correctness constraints. The original partitioning change documented a Linux OOM at a 6.5 GB cgroup ceiling and a subsequent partitioned build at a 4.8 GiB peak. That historical compiler/source graph differs from the exact revisions benchmarked here:
No direct revert of this current native-program consolidation was found in the inspected history. The explicit memory-driven partitioning is the material historical counterexample and remains an unresolved compatibility consideration for smaller builders.