JLD.jl
JLD.jl copied to clipboard
Memory consumption
trafficstars
Hello. When I load multiple JLD files, the data is not garbage collected causing memory exhaustion.
For instance, the following code keeps rising memory consumption. Is this related to HDF5.jl # 349 or could be something else?
using JLD
save("myfile.jld", "t", rand(5000, 3))
for i = 1:50000
c = jldopen("/home/lucaino/myfile.jld", "r") do file
read(file, "t")
end
end
I am using Archlinux. Julia 1.1.0. JLD v0.9.1, HDF5 v0.11.1
I think I am looking at something similar that leads to OutOfMemoryError, will need to continue experimenting but I would be glad to see if someone sees similar.