Skip to content

Memoize _has_delays traversal and add non-DDE fast path - #4621

Merged
AayushSabharwal merged 3 commits into
SciML:masterfrom
KristofferC:kc/dde_cache
Jun 15, 2026
Merged

AayushSabharwal merged 3 commits into
SciML:masterfrom
KristofferC:kc/dde_cache

Conversation

@KristofferC

Copy link
Copy Markdown
Contributor

No description provided.

Thread a `seen` IdSet through the recursion (new `_has_delays!` helper) to skip
already-visited subexpressions, and short-circuit to `false` for non-DDE systems
with an empty `banned` set, where no delays are possible.
@AayushSabharwal

Copy link
Copy Markdown
Member

@KristofferC

KristofferC commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor Author

Well yeah, the commit you pushed change the type of the set but not the signature :P. I pushed a fix.

@AayushSabharwal

Copy link
Copy Markdown
Member

Ah 😅 I apologize. Thanks for fixing.

@AayushSabharwal
AayushSabharwal merged commit de8f940 into SciML:master Jun 15, 2026
71 of 112 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