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
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2010-09-21 15:04:43 +0200
Seen: 1,540 times
Last updated: Sep 22 '10
Can you post your code? Or the relevant parts?