You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since ntuple has a variant that works with Val{N} (which I learned recently from @JeffBezanson), I was hoping that the compiler could do a good job with:
but foo(+, 1,2) seems to be quite slow — 200x slower (according to @btime) than bar(+, 1,2) for bar(f,x,y) = f(x+1,y+1), and @code_llvm foo(+, 1,2) is nasty looking.
I realize that I could use generated functions for this, but I was hoping to avoid that.