How to improve JIT compile performance for local julia scripts

I have a question about JIT compile performance improvement.

The official doc has performance tips:
https://docs.julialang.org/en/v1/manual/performance-tips/index.html
But, in my understanding, this tips are for runtime performance, not JIT compile.

For packages, we can use precompile for JIT compile time improvement.

But, what should user do to improve JIT compile performance for local julia scripts?

According to this post,

Type annotation for functions does’t help it.

Is there any way or strategy to improve JIT compile performance for local julia scripts?

Best

1 Like