Re: Freeing memory in Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg19895] Re: Freeing memory in Mathematica
- From: math at che.freesurf.fr (Math)
- Date: Sun, 19 Sep 1999 18:47:40 -0400
- References: <email@example.com> <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org>
- Sender: owner-wri-mathgroup at wolfram.com
In article <7r24do$6q0 at smc.vnet.net>, Mark Sofroniou wrote: >bettina_hansen at writeme.com wrote: > >> Any suggestions for easier implementation of memory freeing? > >Here are two methods. Set $HistoryLength to discard stored results after a >certain number of calculations. > >In:= ?$HistoryLength >$HistoryLength specifies the number of previous lines of input and output to > keep in a Mathematica session. > >You can also load this package which calls Share at specified intervals. The >intervals can be specified by setting $MemoryIncrement. > >In:= Needs["Utilities`MemoryConserve`"]; > >In:= ?MemoryConserve >MemoryConserve will reduce memory use with the Share function when memory used > has increased by $MemoryIncrement. On[ MemoryConserve] will use $Pre to > make this happen automatically. > Beware that the Share function can be very time-expansive and that its effectiveness depends a lot of the kind of data you handle.