High latency while Running python code using bash script in a python program due to imports
I have a python application which uses subprocesses to run a bash script. The bash script in turn runs a python file which has some imports (retina face, deep face libraries). The application takes a lot of time to run because each time the subprocess is run, it takes 20-30 secs to load/import retina/deep face modules. Is there a way by which this can be sped up?