MathGroup Archive 1995

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

Search the Archive

Limiting mma caching (??)

  • To: mathgroup at
  • Subject: [mg2613] Limiting mma caching (??)
  • From: Mark Van de Vyver <mvyver at>
  • Date: Mon, 27 Nov 1995 21:36:37 -0500


I've the following query / suggestion.

Is it possible to limit the amount of caching that mma does?

For example:

factorial[n_] := factorial [n] = n * factorial[n-1]
factorial[0] = 1;

With factorial[5], there are five numbers held in memory.

In larger recursions this chews up memory quite fast.
A useful feature would be to be able to limit mma to holding the last 'x'
numbers in memory.
Is it possible to implement such a feature, or would it have to be built in
by Wolfram?

Any responses appreciated.

   Mark Van de Vyver
   Mark Van de Vyver
   Department of Accounting and Finance      Phone:  (61) (09) 380-2510      
   University of Western Australia           Fax:    (61) (09) 380-1047        
   Nedlands   6907                           e-mail: mvyver at 

  • Prev by Date: Notebook with Integral-sign
  • Next by Date: Question about thread
  • Previous by thread: Limiting mma caching (??)
  • Next by thread: Re: Limiting mma caching (??)