MathGroup Archive 1999

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

Search the Archive

Re: Freeing memory in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19528] Re: Freeing memory in Mathematica
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sun, 29 Aug 1999 17:21:25 -0400
  • Organization: Universitaet Leipzig
  • References: <7q9g8i$o43@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Bettina,

> I.e. the list is not deleted from memory. The second program, however,
> works fine:
> 
>   Print[MemoryInUse[]]
>   list=Table[Sqrt[i],{i,1,20000}]; NoUse=1;
>   Print[MemoryInUse[]]
>   list=.
>   Print[MemoryInUse[]]
> 
> Gives:
>   836032
>   1906744
>   836352
> 

Use Share[].

Print[MemoryInUse[]]
list = Table[Sqrt[i], {i, 1, 20000}]; NoUse = 1;
Print[MemoryInUse[]];
list =.;
Share[];
Print[MemoryInUse[]];

It gives:

1041872

2062048

1041864

Hope that helps
  Jens


  • Prev by Date: Re: How to use sign[] for symbolic operations?
  • Next by Date: Re: Stochastic Differentail equations
  • Previous by thread: Freeing memory in Mathematica
  • Next by thread: Re: Freeing memory in Mathematica