How can I "free" variables in Julia? -


i'm coding machine learning procedure works large datasets , other related calculations. since datasets large, calculations result large matrices (for example 29,000 x 29,000 array{float64,2}), , need large amounts of storage (ram). later in procedure elements (like initial dataset) not required anymore still wasting memory space.

is there way "free" variables @ moment? or instead, there way share hard disk portion, swap space?

just wrap up... typical approach overwrite objects consuming memory unnecessarily ones require little memory. taken faq (as linked above):

for example, if gigabyte-sized array no longer need, can free memory = 0. memory released next time garbage collector runs; can force happen gc().

if wish create new workspace (i.e. clear variables), done with

    workspace() 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -