-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Julia v1.8 -> v1.9 memory allocations change from 0KB to 2.7KB #50073
Comments
There are type instabilities:
|
Thanks, @Seelengrab . For me, |
@Seelengrab Note that I tried to address some issues highlighted by your output in my MWE in the first comment. However, I saw |
Ah, indeed - I used 0.7.14 earlier, I don't get the errors reported with 0.8. Unfortunately, that means it's likely a bit harder to track down that allocation - I'd suggest the Profiling stdlib, to figure out where the allocations are coming from. It's quite difficult trying to track this down otherwise. |
Hm, that's unfortunate :/ Barring a more minimal reproducer, I'm afraid only a bisect of the julia versions between 1.8 and 1.9 can help here; though maybe a look a |
You might want to set the sampling rate to 1 for the allocation profiler. |
👍 @vchuravy I had it set 1. |
Cleaning up old issues without an MWE |
On upgrading to Julia from 1.8.5. to 1.9.0 I noticed code in one of my packages slow down significantly. (I've already highlighted a type inference issue that I found. This is an entirely separate issue.) After upgrading, the following code suddenly causes a lot of memory allocations. This is the simplest code which replicates the problem, but most minor changes will suddenly cause all the allocations to disappear:
The text was updated successfully, but these errors were encountered: