MathGroup Archive 1995

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

Search the Archive

Limiting mma caching (??)

  • Subject: [mg2613] Limiting mma caching (??)
  • From: mvyver at (Mark Van de Vyver)
  • Date: Mon, 27 Nov 1995 21:36:37 -0500
  • Approved:
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Wolfram Research, Inc.


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: RE:Labeling Lines on a multiple plot
  • Next by Date: Volterra Series & NonLinear System ID in Mathematica
  • Previous by thread: RE:Labeling Lines on a multiple plot
  • Next by thread: Limiting mma caching (??)