Typical ways around that include mmap’ng things or various types of shared memory IPC, but that is a lot of work.
When I execute this:
python3 -c 'import time; time.sleep(60)'
And then pmap the process id of that process, I get 26144K. That is 26MB.As for timing, when I execute this:
time python3 -c ''
I get 0.02s