I have an application that spawns multiple sub-processes. I use a Julia package (DiffEq.jl) in each of the sub-processes (through diffeqpy). However, each sub-process is creating it's Julia instance, which adds overheads both in terms of initialization time and memory.
I want to create a single PyJulia process and share it across multiple sub-processes so that DiffEq.jl will only be imported once. Any insights on how to do this would be very helpful.