In the local case, it is having to allocate, populate, and then at some point garbage collect that array. That is why using a const is much faster.
- [julia-users] why so much faster with a global than a loc... Jeffrey Sarnoff
- [julia-users] why so much faster with a global than ... Scott Jones
- Re: [julia-users] why so much faster with a global t... Stefan Karpinski
- [julia-users] Re: why so much faster with a global t... Jeffrey Sarnoff