RosettaCodeData/Task/Arena-storage-pool/Julia/arena-storage-pool.jl
2024-10-16 18:07:41 -07:00

3 lines
185 B
Julia

matrix = zeros(Float64, (1000,1000,1000))
# use matrix, then when done set variable to 0 to garbage collect the matrix:
matrix = 0 # large memory pool will now be collected when needed