http://julia.readthedocs.org/en/latest/manual/performance-tips/

On Thursday, January 15, 2015 at 2:56:55 PM UTC-5, Michael Wojnowicz wrote:
>
>
> Hi everyone, 
>
> This very simple loop
>
>
> m=0.0
>
>
> @time for i=1:1000000
>
>       r= rand()-.05
>
>       m=max(m,abs(r))
>
> end
>
>
> allocates 32 MB of memory.
>
>
> I do not have this problem when I write for loops over vector components, 
> but how can I overwrite scalars in Julia?
>
>
> Thanks a lot and looking forward to any possible tips or ideas.
>
>
> -Mike
>
>
>

Reply via email to