# run this to make a precompiled system image with the packages used
# in Econometrics pre-compiled, and with some commonly used functions
# also pre-compiled.
# 
# once it's done, start Julia from the Econometrics directory with
# julia --proj -JEconometricsSysimage.so"
#
# delete the .so file to return to normal.
#
# NOTE: this system image does not work with VS Code.

using Pkg, PackageCompiler
Pkg.activate(".")
PackageCompiler.create_sysimage(:Econometrics; sysimage_path="JuliaSysimage.so",
                                                precompile_execution_file="warmup.jl")

