Hi,
I’m trying to figure out most convenient workflow/project structure for my use-case.
Currently I have a directory with multiple *.jl files without defining any new Modules or Packages.
This project is under continuous development and is being used on multiple devices.
On new device:
- install Julia
- git clone project
- julia packages.jl (acts like “py -m pip install -r requirements.txt” )
Now each time to run:
- git pull (if needed)
- julia
- include(“main.jl”)
- [1, 2, 3] |> main (user needs to specify arguments)
Only problem I have with this workflow is precompilation at include(“main.jl”):
@time include(“main.jl”)
19.197692 seconds (14.11 M allocations: 812.678 MiB, 1.66% gc time)
I don’t mind having dependencies in global environment. Don’t really need to define Module for namespace. This project will never be made public.
What would be the simplest way to reorganize my project to be able to cache precompiled main function.