It makes more sense now:

        - function baz()
  8000768   a = ones(100,100,100)
  8000544   b = zeros(100,100,100)
        -
 62981056   a[1:50,1:50,1:50] = b[1:50,1:50,1:50]
        - end
        -
        - baz()
        - Profile.clear_malloc_data()
        - baz()
        -

Some extra bytes here and there, but they are basically the same number.
What about the assignment? Any way to avoid it?

-Júlio

2015-12-10 13:41 GMT-08:00 Kristoffer Carlsson <[email protected]>:

> Yes unless you want to track compilation allocations. Run your stuff once
> in the script, call Base.profile.clear_memory_cache() (taken from memory
> but something like that) and then run everything again (in the same julia
> session).

Reply via email to