Repository navigation
Make RK_WITH_SPECIAL_INTERPOLATIONS const - #4608
Merged
ChrisRackauckas merged 1 commit intoSep 25, 2026
Merged
Conversation
The Union alias is used only in method signatures; marking it const removes a non-const global from the package namespace. No runtime behavior change expected or measured. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <[email protected]> Agent-Harness: devin 3000.11.1 (cc4e349ca55e) Agent-Model: swe-2-high Agent-Session: local Devin session in /home/crackauc/sandbox/goals/performance/jobs/OrdinaryDiffEqTsit5/repo (log: /home/crackauc/sandbox/goals/performance/jobs/OrdinaryDiffEqTsit5/log.txt)
ChrisRackauckas
marked this pull request as ready for review
September 25, 2026 02:17
This was referenced Sep 26, 2026
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 27, 2026
The Union alias is used only in method signatures; marking it const removes a non-const global from the package namespace. Same change as #4608 for Tsit5. No runtime behavior change expected. Agent-Harness: Cursor Agent 2026.09.26-dd393fe Agent-Model: auto Agent-Session: local cursor-agent session in /home/crackauc/sandbox/goals/performance/jobs/pr-out-size/repo (log /home/crackauc/sandbox/goals/performance/jobs/pr-out-size/log.txt) Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: Cursor Agent <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 27, 2026
Signature-only Union alias hygiene; same pattern as #4608. Agent-Harness: Cursor Agent 2026.09.26-dd393fe Agent-Model: auto Agent-Session: local cursor-agent session in /home/crackauc/sandbox/goals/performance/jobs/pr-rosen-const/repo (log /home/crackauc/sandbox/goals/performance/jobs/pr-rosen-const/log.txt) Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: Cursor Agent <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 28, 2026
QNDF_CACHES, FBDF_CACHES, and BDF_CACHES_WITH_INTERPOLATIONS are used only in method signatures and are never reassigned; NORDSIECK_CACHES later in the same file is already declared const. Declaring them const lets the compiler treat the unions as constant bindings and silences the only non-const globals in OrdinaryDiffEqBDF. Same pattern as #4608. Verified: isconst(OrdinaryDiffEqBDF, name) reports true for all three (false before); FBDF solve and dense interpolation are unaffected. Agent-Harness: devin 3000.11.1 Agent-Model: swe-2-high Agent-Session: local Devin session in /home/crackauc/sandbox/goals/performance/jobs/pr-bdf/repo (log /home/crackauc/sandbox/goals/performance/jobs/pr-bdf/log.txt) Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: Devin <[email protected]>
ChrisRackauckas
referenced
this pull request
Sep 29, 2026
* Bump DiffEqBase to 7.21.3 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqBDF to 2.4.12 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqSDIRK to 2.9.7 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqRosenbrock to 2.7.5 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqLowOrderRK to 2.2.6 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqTsit5 to 2.1.5 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqVerner to 2.4.2 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqSymplecticRK to 2.2.3 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.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.
What changed and why
RK_WITH_SPECIAL_INTERPOLATIONSinlib/OrdinaryDiffEqTsit5/src/interpolants.jlwas the package's only non-constglobal. It is aUnionalias used exclusively in method signatures (cache::RK_WITH_SPECIAL_INTERPOLATIONS), never read at runtime, so marking itconstis hygiene only — no runtime change is expected, by construction. This PR adds theconstkeyword and nothing else; the same-named aliases in other sublibraries are separate module locals and are untouched.Verification
@benchmarkofsol(out, t)dense interpolation (Lorenz, Tsit5, 1000 points, 3 trials per run; machine under heavy load — load avg ~500 on 128 cores):Before:
After:
The numbers are noise on a loaded machine; a signature-only alias has no runtime effect regardless —
constonly removes a non-const global binding from the module namespace.Test group —
GROUP=ALLfor OrdinaryDiffEqTsit5 (its whole suite is the QA group: AllocCheck, JET, Aqua):(The 2 JET "broken" are pre-existing
@test_brokens. Two unrelated sibling packages printed "missing from the cache" warnings during parallel precompilation under heavy load; they are not dependencies of this change.)Runic
--checkon the changed file: exit 0.typosover the diff: exit 0.What was not verified
Please ignore until reviewed by @ChrisRackauckas.
Risk assessment
Unionalias in OrdinaryDiffEqTsit5 used only in dispatch signatures; not exported, not referenced from any other sublibrary.isconstfalse → true (commands above); Tsit5 test group (Allocation, JET, Aqua) passes.conston a signature-only alias, no external references, same-named aliases in LowOrderRK/Verner are separate modules. Verdict MERGE.🤖 Generated with Devin (model: swe-2-high), local session, orchestrated by Claude Code (claude-opus-5-5[1m]) session https://claude.ai/code/session_01LPHREnnonfLg1VcE1EJovv