Skip to content

Memoize split_indexed_var and get_stable_index#4696

Merged
AayushSabharwal merged 1 commit into
SciML:masterfrom
KristofferC:kc/memoize_stuff
Jul 1, 2026
Merged

Memoize split_indexed_var and get_stable_index#4696
AayushSabharwal merged 1 commit into
SciML:masterfrom
KristofferC:kc/memoize_stuff

Conversation

@KristofferC

Copy link
Copy Markdown
Contributor

This makes ODEProblem creation for a somewhat large model to go from

9.323569 seconds (149.84 M allocations: 5.572 GiB, 20.05% gc time)

to

7.796214 seconds (137.43 M allocations: 5.137 GiB, 10.10% gc time)

The limit chosen is the same as for occursin_info in Symbolics.

@AayushSabharwal AayushSabharwal merged commit 6f44fe7 into SciML:master Jul 1, 2026
69 of 89 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