MathGroup Archive 1996

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

Search the Archive

Re: memory use

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4826] Re: memory use
  • From: rubin at msu.edu (Paul A. Rubin)
  • Date: Fri, 20 Sep 1996 01:12:44 -0400
  • Organization: Michigan State University
  • Sender: owner-wri-mathgroup at wolfram.com

In article <51c4vv$b2u at ralph.vnet.net>,
   rustybel at foothill.net (Russell Towle) wrote:
->Using MMA 2.2 on a PowerMac with 32MB RAM allocated to the kernel, I am
->assembling large arrays of integers which I pass to ListPlot3D.  For
->example, a list of dimensions {490, 1091}.  Simply to assemble this list
->uses so much memory that I cannot pass it to ListPlot3D in the same
->session; so I thought that writing it to a file might be a good device.
->
->I use the syntax, (biglist >> "filename"), but to my surprise, the kernel
->requires tons of memory to execute this, even though the list "biglist" 
is
->already evaluated, and every element in it already resides in memory.
->
->By allocating 40 MB of memory to the kernel, I was able to write the list
->to a file.  The file size itself was only 3MB.  Why does MMA need 16 or
->20MB to write a 3MB file?
->
->Russell Towle
->Giant Gap Press
->P.O. Box 141
->Dutch Flat, California 95714
->------------------------------
->Voice:  (916) 389-2872
->e-mail:  rustybel at foothill.net
->------------------------------
->
Are the integers literally integers, or expressions that reduce to 
integers?  (Although I'm not sure how much of a difference that makes.)

More to the point, have you tried using Share[] to reduce the memory 
consumption?

-- Paul

->
->
->

**************************************************************************
* Paul A. Rubin                                  Phone: (517) 432-3509   *
* Department of Management                       Fax:   (517) 432-1111   *
* Eli Broad Graduate School of Management        Net:   RUBIN at MSU.EDU    *
* Michigan State University                                              *
* East Lansing, MI  48824-1122  (USA)                                    *
**************************************************************************
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.                                    J. W. v. GOETHE

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: memory use
  • Next by Date: Plotting functions
  • Previous by thread: Re: memory use
  • Next by thread: Re: memory use