I'm now trying to precompile a Julia module so that it may run faster. However, it seems strange to me that writing __precompile__()
before the module declaration doesn't seem to have produced any cache file in the folder.
Then, I tried to call the function Base.compilecache
with the following steps:
- Launch the REPL in the project folder
include("M.jl")
Base.compilecache("M")
However, even though the first two steps finish without problems and that I can actually run the functions defined within the module, the third step complains "ERROR: ArgumentError: M not found in path", and I still can't seem to generate any cache for the module.
What did I do wrong here?