Release memory: how?
I have a program which uses large sets. After the calculation these files can be deleted (to release memory). How? Roland
I have a program which uses large sets. After the calculation these files can be deleted (to release memory). How? Roland
Please clarify your meaning (in terminology). By files, do you mean in RAM or on disk? Both meanings are possible in programming terminology.
To release a sage/python object still in scope, call del(objname).
If you want to delete a disk file, you can find it under the "~/.sage/" directory on unix-like systems.
The reason is that del is a keyword statement in python, not a first-class object (not everything is an object in python):
http://docs.python.org/release/2.6.6/reference/lexical_analysis.html#keywords
http://docs.python.org/release/2.6.6/reference/simple_stmts.html#the-del-statement
Asked: 2010-09-21 08:04:43 -0600
Seen: 1,084 times
Last updated: Sep 21 '10
Can you post your code? Or the relevant parts?