creating a sysimage #1
Unanswered
schrimpf
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you want faster Julia startup times, I recommend creating a sysimage with some common packages compiled. Here's how I did it. These steps require using VSCode.
Clone the quantecon notebooks repository. The following directions assume you have them in
~/lecture-julia.notebooks
Open Julia with the quantecon environment activated. Update the packages by executing either
or press
]
and then enteractivate ~/lecture.julia.notebooks
and thenupdate
. This will take some time.~/lecture.julia-notebooks/.vscode
, and put the following in a file named~/lecture-julia.notebooks/.vscode/JuliaSysimage.toml
You could modify the exclude list. I'm not sure what packages must be excluded.
Put the following in a file named
~/lecture-julia.notebooks/.vscode/precompile_exe.jl
You can add additional commands if there are other things you want to ensure get compiled.
Go to Terminal -> Run Task -> julia -> Julia: Build custom sysimage for the current environment. This will take some time.
To use the sysimage, just open the
~/lecture-julia.notebooks
folder in VSCode. To use the sysimage outside of VSCode, start julia withjulia -J ~/lecture-julia.notebooks/JuliaSysimage.o --project=~/lecture-julia.notebooks
Beta Was this translation helpful? Give feedback.
All reactions