JuliaLang/julia — pull request #7308 by catawbasam (2014-06-18 19:47:45+00:00)
Title: Performance: float(AbstractArray) and  complex(AbstractArray) 

The test_profile() function used to demonstrate https://github.com/timholy/ProfileView.jl shows a performance hit from an anonymous function at abstractarray.jl line 319, which is complex(A::AbstractArray) . map_promote() in that function contains an anonymous function that creates a performance hit. Switching to a named function speeds test_profile() by about 3.3x on my 64-bit Linux system. cc: @tholy

Profile View example with *current* float(A::AbstractArray) and complex(A::AbstractArray) --
http://nbviewer.ipython.org/gist/catawbasam/1fd6a82605a54b052425

Profile View example with *proposed* float(A::AbstractArray) and complex(A::AbstractArray) --
http://nbviewer.ipython.org/gist/catawbasam/e1768937952565213561