Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Question about memory consumption in my codes by using Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80233] Re: Question about memory consumption in my codes by using Mathematica
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 15 Aug 2007 04:20:23 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <f9s47u$ao7$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

try Block[] instead of Module[] ..

Regards
   Jens

foxvexon wrote:
> I write a routine that repeats loading and treating a large amount of
> data imported from external data files produced by another program. I
> enclose codes for this task in a simple Module[{local_vars},
> expressions]. Of'cause, it calls pre-defined routines outside but does
> not introduce any new variable except temple local ones.
> 
> I am confused that If this is done for just one or two loops/times, it
> works well. But if I hope to run this loop several times, like 10~200,
> Mathematica usually reports memory consumed out and terminates
> automatically.
> 
> I check my codes over and over to make sure that I do not introduce
> new variables in each loop that will eat up memory every time. But, I
> do notice (from windows task manager) that the used memory by
> Mathematica 6 is increasing with each loop.
> 
> Please help! Thanks a lot in advance!
> 
> 


  • Prev by Date: Evaluating a convolution integral in Mathematica
  • Next by Date: Re: A different font size for each line in PlotLabel
  • Previous by thread: Re: Evaluating a convolution integral in Mathematica
  • Next by thread: FindFit NMinimize and Nelder-Mead Optimization