MathGroup Archive 1999

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

Search the Archive

Re: Freeing memory in Mathematica


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