Jason A Eckstein
Jason A Eckstein
Bump, ran into this issue on MacOS today after trying to test out juliaup.
I'll try making a similar test with vectors instead. You see in this example how I'm actually pushing in a matrix into each spot. Do you want me to try...
Ran a similar test with vectors of matrices and got the same results. ```julia using InteractiveUtils versioninfo() function test() totmem = Int64(Sys.total_memory()) getfreemem() = Int64(Sys.free_memory()) # println() # if isempty(ARGS)...
What is super interesting though is I modified the test to just be a plain vector of Float64 and the gc fails to free the memory for both Windows and...
> Hi, did you try to use `sizehint!(vec, len)`? It frees memory on my computer. > > If you look at the C code called by `sizehint!`, you'll see that...
Tried using `sizehint!(vec, len)` but in Ubuntu dind't make any change to the gc behavior ```julia using InteractiveUtils versioninfo() function test() totmem = Int64(Sys.total_memory()) getfreemem() = Int64(Sys.free_memory()) function create_test_vector(totmem) testvect...
So I made a new test, I call `GC.gc()` right after clearing the keys as before and once again after the `sleep` call. This time the entire vector is cleared...
This was an issue I originally brought up on discourse not connected to any specific package. Back then we didn't make much progress but I do want to retry the...
Using Base.gc_live_bytes() did seem to show the memory was freed up in most of the earlier tests, however I saw in some cases that using vs not using `sizehint!()` made...