RosettaCodeData/Task/Arena-storage-pool/Julia/arena-storage-pool.julia
2018-06-22 20:57:24 +00:00

3 lines
185 B
Text

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