Hi there,

I’m trying to make my Julia code as fast as possible and a friend of mine recommended using precompile. I have read about it but I’m not sure how to proceed, do I precompile the package I’m using o the function I’m creating? This is an example of my code:

`using GLM, Polynomials

function polynomial(k)

x_pol = Polynomials.fit(x, y, k)

return x_pol

end

precompile(polynomial, (Int64, ))`

I haven’t seen any changes in performance of the code when I add precompile(polynomial, (Int64, )) so I’m not sure how to proceed.

Thank you very much.