It's a long-standing issue that local and anonymous functions allocate (and 
have poor performance). FastAnonymous.jl and similar packages give you one way 
around that.

--Tim

On Saturday, January 31, 2015 08:03:37 PM Kirill Ignatiev wrote:
> On Saturday, 31 January 2015 21:54:54 UTC-5, Jameson wrote:
> > code_warntype is being a bit misleading there. code inference hasn't yet
> > fully run on the inner function.
> 
>  This is a reduced test case from a larger program, which allocated a lot
> of memory, and when I got rid of the locally declared function, the memory
> usage dropped significantly. So at least empirically I think there may be a
> problem there.

Reply via email to