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

MathGroup Archive 2006

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

Search the Archive

Re: Memory operations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64988] Re: [mg64895] Memory operations
  • From: yehuda <bsyehuda at gmail.com>
  • Date: Fri, 10 Mar 2006 05:15:21 -0500 (EST)
  • References: <200603071111.GAA08475@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I vote for changing the way you work.
From my experience, For is the slowest loop in Mathematica.
Add it to the way that mathematica manage memory with apend, and I think you
will find it hard to make a less efficient program.
regards
yehuda

On 3/7/06, sir_puding at tut.by <sir_puding at tut.by> wrote:
>
> Hi.
>
> Can anyone tell me how to free memory in Mathematica.
>
> I have some list operations in cycle (really long cycle).
> Smth. like
>
> -----------------------
> ar={};
> For[i=0,++i<10000000000,
> ar=Append[ar,{bla bla bla}];
> ]
> -----------------------
> How can i free memory allocated for ar  when cycle is completed --- i
> have terrible memory leakage (several megs in minute), cause when I use
> Clear or Remove ar does
> not point to any address, but the result of previous calculations is
> still in memory. I could not find any operation like free() in C.
>
>
> Tnx.
>
> --
> Please avoid sending me Word or PowerPoint attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.html
>
>



  • Prev by Date: Re: Data acquisition via link for Excel
  • Next by Date: first variation of the functional
  • Previous by thread: Memory operations
  • Next by thread: Re: Re: Memory operations