Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Freeing memory in Mathematica

  • To: mathgroup at
  • Subject: [mg19895] Re: Freeing memory in Mathematica
  • From: math at (Math)
  • Date: Sun, 19 Sep 1999 18:47:40 -0400
  • References: <7q9g8i$> <7qkmbq$4rr$> <7qqcd8$> <7r24do$>
  • Sender: owner-wri-mathgroup at

In article <7r24do$6q0 at>, Mark Sofroniou wrote:
>bettina_hansen at 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[1]:= ?$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[2]:= Needs["Utilities`MemoryConserve`"];
>In[3]:= ?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.

  • Prev by Date: Re: simple Simplify[] question
  • Next by Date: Fast List-Selection
  • Previous by thread: Re: Freeing memory in Mathematica
  • Next by thread: LaTeX Output