Repository navigation
R1e: nothing is JIT-compiled after readiness - #1231
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng, late imports, guard) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…red by the catalog server Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
R1e · guards 2/2 · production −1410 +241 · tests −4 +285
Owner requirement: every one-time cost is paid in function-catalog preparation, before the server reports ready; nothing is JIT-compiled afterwards in the server, its workers or the client. Receipt with method, tables and certificates:
docs/refactor/consolidation-20261009/R1e-no-jit-after-readiness.md.Measured on main (cold Numba and catalog caches, CPU-only, Numba's
numba:compileevent and cache lookups counted per process)linear_costesbranches on the data..cppipe, because building a callable's contract ran its preparation hooks. It never runs a kernel.Changed
CallableProjection.declared_contract()reads a contract without preparing;.cppipeconversion and pattern lowering use it.CompilationSessionprepares throughnormalize_prepared_function_pattern, so a process without catalog preparation still prepares at compile time. Signatures are identical before and after preparation for all 1035 catalogued targets.After
Wall times were taken with other jobs running on the machine; counts are exact.
Guards
tests/integration/test_no_jit_after_readiness.py: one cold run of two pipelines over a real server in a child process. (1) No process compiles or loads a kernel after its server's readiness; a client never does. (2) EveryopenhcsNumba dispatcher that is notinline="always"has a compiled signature at readiness; seen failing with one warm-up removed. Integration tier (a cold preparation takes about 90 s). They cannot see a kernel prepared with one signature and reached with another.Gates
verify_branch.sh r1e: 11656 passed, 34 failed, 2 errors; new against the known list: 0.heavy_slot.shandofficial30.lock, cold: 1 passed in 716 s (all 30 cases); its trace shows 0 compilations after the first preparation in any process.smoke_local.shrc=0;guardrails_local.shrc=0; guards 2 passed.For the reviewer
block_labels, non-booleanfill_labeled_holes_below_size, 3Drelabel_sequential); those inputs now take the inherited NumPy/SciPy implementation. Certificate: tests-only. The alternative is to keep them and add warm-ups.intensity_zernike_moments_batch(an exported name with no caller) is deleted.🤖 Generated with Claude Code