Ah, that makes sense. So I tried with the latest 0.5 nightly and I go from
~3ms to ~1ms, a nice improvement! (different than what Andrew reported
above, so perhaps something changed over the last few nights tho)
Unfortunately ProfileView is giving me an error on 0.5, but from printing
the profile data I can at least confirm jl_apply_generic is no longer being
called.

On Sun, Jun 19, 2016 at 6:06 PM, Giuseppe Ragusa <giuseppe.rag...@gmail.com>
wrote:

> As Eric pointed out, with Julia 0.4.x functions passed as arguments are
> not optimized as their type is difficult to infer. That's why the profiler
> shows jl_generic_function being the bottleneck. Try it with 0.5 and things
> could get dramatically faster.

Reply via email to