Re: Out of memory problems
- To: mathgroup at smc.vnet.net
- Subject: [mg3562] Re: Out of memory problems
- From: Harald Berndt <haraldb at nature.berkeley.edu>
- Date: Mon, 25 Mar 1996 21:33:07 -0500
- Organization: University of California Forest Products Lab
- Sender: owner-wri-mathgroup at wolfram.com
stephen nichols wrote: > > Hey, > > I am having a problem with the kernel running out of memory. I tried > to read from a file 20,000 sets of x,y,z floating point values. The > kernel always exited saying it was out of memory. I tried increasing > the extra memory for the kernel but this seemed to make no difference. > I tried entering very large values but still the same problem. How do > I deal with this? > > Thanks, > Stephen Nichols Well, from my experience, handling sets 20,000 x 3 real numbers does strain Mma significantly. However, in your case a good part of that strain may come from the necessary conversions of text strings to floating point numbers (if I interpret your problem statement correctly: you are reading text files, aren't you?!). It may be worth trying to read one line (data set) at a time into _the same variable_, then append that variable to your list of datasets. Maybe use a ClearInOut[] after every read (from the package CleanSlate[], avaiable on MathSource). Use the Share[], too, although I never got as much memory released doing that as from ClearInOut[]. -- _______________________________________________________________ Harald Berndt University of California Research Specialist Forest Products Laboratory Phone: 510-215-4224 FAX:510-215-4299 ==== [MESSAGE SEPARATOR] ====