-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange Memory Allocations with saveat #880
Comments
I've seen this in other spots, like SciML/OrdinaryDiffEq.jl#1502 . It seems like it's something to do with type inference or inlining being dependent on the method table, and so redefining functions can change what inlines and what does not. But it seems like a core Julia thing and I'm not sure what we could specifically do to avoid it (see some of the links to JuliaLang/julia issues, i.e. JuliaLang/julia#32552 and JuliaLang/julia#35800). I'm closing this as a case of a Base Julia issue, and thus it's not actionable in this library, but I'll ask some of the folks working on inference what's the current status of fixing this. |
Hello, I'm observing very strange and large memory allocations while solving a standard ODE and evaluating it at given times. However, after the first benchmark, if (and only if!) I recompile the integrated function these allocations disappear.
The function I'm integrating is:
while
test
is the function that evaluates the solution at the given times:Calling it with:
yields:
If i recompile
dyn!
the new benchmark is:Any idea what's happening? I see the Garbage Collector is taking quite a lot of time
The text was updated successfully, but these errors were encountered: