Sharing PyJulia instance across multiple sub-processes in an application

Viewed 45

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.

0 Answers
Related