MathGroup Archive 2008

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

Search the Archive

ListDensityPlot - Memory pig and leaker?

  • To: mathgroup at
  • Subject: [mg92112] ListDensityPlot - Memory pig and leaker?
  • From: Frank Iannarilli <frankeye at>
  • Date: Sat, 20 Sep 2008 04:59:56 -0400 (EDT)


{Mathematica 6.0.3, WinXP, $HistoryLength=1}

I'm processing floating-point images, and watching the Windows Task
Manager's (WTM) report on the kernel's memory consumption.

I do some crunching of 384x256x3 (RGB) imagery, and WTM memory
consumption rises to ~65MB.  I use Show[Graphics[Raster[...  to
display, which is very fast and hardly impacts memory usage.  I
Clear[] some images and Share[], and watch the WTM report decreased
memory usage.

Next I use ListDensityPlot[] on just one channel (monochrome), with
options meant to speed/minimize processing:
   SetOptions[ListDensityPlot, PerformanceGoal -> "Speed",
MaxPlotPoints \
-> Infinity, ColorFunction -> GrayLevel, InterpolationOrder -> 0];

It takes about a minute waiting for the result.  The WTM reports
~565MB usage!!  Moreover, after a few cheap input/output cycles to
clear history, the amount of memory reported by WTM doesn't budge,
even though MemoryInUse[] reports much less, say ~25MB.  In fact, I
can go on for a while in the session, and memory is never released
(per the WTM).


  • Prev by Date: Re: Re: weird NMaximize behaviour
  • Next by Date: Re: Variable names in Mathematica
  • Previous by thread: Re: Integration in Mathematica
  • Next by thread: hi,friends(8)