Hi all!  I am wondering if perhaps I am getting the syntax wrong with 
respect to the proper way to do anonymous functions in 0.5.  I am not 
seeing any performance increase when using them as I expected.

For example:


*k = rand(1000)*

*@time map((x::Float64) -> x^2, k)*0.025886 seconds (12.55 k allocations: 
567.842 KB)



*squareit(x::Float64) = x^2*

*@time map(squareit, k)*

0.000103 seconds (7 allocations: 8.125 KB)

Or are you not going to get a speed increase using "map"?

Thanks!

Chris

Reply via email to