Skip to content

Backport for: Avoid an inference hang in reduce_ode_mod_p on Julia 1.14.0-beta1 - #588

Merged
pogudingleb merged 1 commit into
release-0.5from
backport-0.5
Nov 19, 2026
Merged

pogudingleb merged 1 commit into
release-0.5from
backport-0.5

Conversation

@pogudingleb

Copy link
Copy Markdown
Collaborator

Backport for #587

`new_type` is not inferable here, so the reduced equation dicts infer as
`Dict{_A, Union{FracFieldElem{_A1}, _A1}} where {_A, _A1}`. Building a `Dict`
whose values are those dicts, only to iterate over the two (old, new) pairs,
sends type inference on Julia 1.14.0-beta1 (and master) into a loop of ever
larger `Memory{Union{FracFieldElem{_A}, FracFieldElem{_A1}, ...}}` types, so
compiling `assess_identifiability` never finishes. Iterate over a tuple of the
pairs instead; this also avoids the two pairs colliding as keys when
`x_equations == y_equations`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 066b93c)
@pogudingleb
pogudingleb merged commit 501ee8c into release-0.5 Nov 19, 2026
4 checks passed
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.

2 participants