Of course, this is piques one's curiosity. It might be, if the function is simple enough, that there is little advantage to Julia here.
But if you are combining multiple operations on a vector, there could be opportunities for Julia, in-place operations, fusing, simd. Maybe even StaticArrays.
Any chance of sharing that little piece of code?