Let’s say you’ve created some data object:
cur_dict = Dict()
for i in 1:10000
cur_dict[i+rand()] = i
sleep(2)
end
Then you fat finger the previous code again so that cur_dict
is reset to Dict()
.
Is there a way to reclaim the cur_dict
– that got over-referenced – before it gets garbage collected?