I figured out my problem. I was pre-creating and storing
CFunction{Float64,Float64} objects in an Array{CFunction,1}. This was
causing f to be a CFunction rather than a CFunction{Float64,Float64}. So
the Julia compiler was a bit confused as to what my return type was going
to be.
I've got it worked out, and it does work. Thanks!
On Tuesday, January 20, 2015 at 10:19:51 PM UTC-6, Jeff Bezanson wrote:
>
> That's surprising; I get the same speedup in 0.3 with
>
> function test2()
> f = CFunction{Float64,Float64}(foo)
> for i=1:100000000
> r = call(f, 1.0)
> goo(r)
> end
> end
>
--
Please click here
<http://www.e-disclaimer.com/conning/AD21D06B4CC99D2B4F24BA73FB4EED83.htm> for
important information regarding this e-mail communication.