I want to compile and cache some of the functions at the start of Julia session - I find it less disruptive compared to the slow first run. Will calling them with @code_native
and passing dummy arguments of appropriate type do the trick? I don’t want to actually run them at this stage. Or is there another way?
You can use precompile(f, (tuple, of, arg, types))
4 Likes