MathGroup Archive 2005

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

Search the Archive

Re: Memory usage

  • To: mathgroup at
  • Subject: [mg53647] Re: [mg53602] Memory usage
  • From: DrBob <drbob at>
  • Date: Fri, 21 Jan 2005 06:36:16 -0500 (EST)
  • References: <>
  • Reply-to: drbob at
  • Sender: owner-wri-mathgroup at

Show us the code you used to Split the array.

The result may not be packed, of course, and that could explain a lot of extra space.


On Thu, 20 Jan 2005 03:47:42 -0500 (EST), Bruyndonckx P. <pbruynd at> wrote:

> I am trying to use mathematica to analyse large data sets but I always run
> into memory problems
> I read a set of 16220656 Integer32 numbers from a file.  Mathematica
> stores these numbers efficiently in a packed array which consumes
> 16220656*4=64882680  bytes.  I want to divide the list whenever the number
> is 0 using the Split command. However, this process take 316 Mbyte of
> memory (difference between MemoryInUse before and after the Split
> command).
> Could somebody explain why Mathematica is using such a large amount of
> memory and how to avoid this ?  Is there a good reference on the topic of
> memory efficient programming in Mathematica ?
> Peter

DrBob at

  • References:
  • Prev by Date: Re: element selection
  • Next by Date: Re: ShowLegend....
  • Previous by thread: Memory usage
  • Next by thread: ShowLegend....