You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering how gc works for Scratch objects, exactly when will they get deleted? I have two specific questions:
1. Per object?
My package uses two objects, with:
module MyPackage
public f1, f2
functionf1()
Scratch.@get_scratch!("one")
endfunctionf2()
Scratch.@get_scratch!("two")
endend
A user called MyPackage.f1 recently, MyPackage.f2 two weeks ago, and never since. Will "two" get deleted when the user does gc? Or is it an all-or-nothing situation, where the objects only get deleted if the entire package MyPackage is not used in the past week?
2. collect_delay=Second(1) leaves some scratch spaces
I called Pkg.gc(collect_delay=Second(1)) in a terminal and I was surprised that some scratch spaces were still there. The .julia/scratchspaces folder still has three subfolders (from Pluto, Makie and Pkg I believe). Is this expected? I assumed that collect_delay=Second(1) would cause all scratch spaces to get deleted, since nothing was used in the past second.
Thanks! Let me know if my questions are unclear :) ☀
The text was updated successfully, but these errors were encountered:
Hi!
I am wondering how
gc
works for Scratch objects, exactly when will they get deleted? I have two specific questions:1. Per object?
My package uses two objects, with:
A user called
MyPackage.f1
recently,MyPackage.f2
two weeks ago, and never since. Will"two"
get deleted when the user doesgc
? Or is it an all-or-nothing situation, where the objects only get deleted if the entire packageMyPackage
is not used in the past week?2.
collect_delay=Second(1)
leaves some scratch spacesI called
Pkg.gc(collect_delay=Second(1))
in a terminal and I was surprised that some scratch spaces were still there. The.julia/scratchspaces
folder still has three subfolders (from Pluto, Makie and Pkg I believe). Is this expected? I assumed thatcollect_delay=Second(1)
would cause all scratch spaces to get deleted, since nothing was used in the past second.Thanks! Let me know if my questions are unclear :) ☀
The text was updated successfully, but these errors were encountered: