Hi,

On 2013-02-18, switzel <[email protected]> wrote:
> so I could do something like
>
> import gc
> i=i+1
> if (i%10000==0):
>     if get_memory_usage()>3000:
>         gc.collect()
>
> but shouldn't there be a more "automatic" way? Thanks!

Garbage collection *is* automatic, and there is no need to call it
manually. And actually it wouldn't help to call it manually.

What Sage version are you using? Namely, the most recent version
(or perhaps beta version?) contains several fixes for memory leaks that come
from an over-eager cache.

Best regards,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to