pyjulia icon indicating copy to clipboard operation
pyjulia copied to clipboard

trace-compile flag not supplied when building sysimage

Open baggepinnen opened this issue 3 years ago • 1 comments

It appears as if providing a custom julia script precompile.jl with statements to execute has no effect on the buildt system image. I believe this is due to the command-line flag julia --trace-compile=precompile_statements.jl not being supplied.

baggepinnen avatar May 06 '21 12:05 baggepinnen

I was probably wrong about why there was no speedup, I instead believe it is due to :PyCall being the only module that is passed to create_sysimage at https://github.com/JuliaPy/pyjulia/blob/87c669e2729f9743fe2ab39320ec9b91c9300a96/src/julia/compile.jl#L35 So any module that is imported in the precompile_execution_file script will not be included in the system image.

baggepinnen avatar May 06 '21 13:05 baggepinnen