(no title)
morningsam | 9 months ago
Which is why, at least on Linux, Python's multiprocessing doesn't do that but fork()s the interpreter, which takes low-single-digit ms as well.
morningsam | 9 months ago
Which is why, at least on Linux, Python's multiprocessing doesn't do that but fork()s the interpreter, which takes low-single-digit ms as well.
zahlman|9 months ago
But also keep in mind that cleanup for a Python process also takes time, which is harder to trace.
Refs:
https://docs.python.org/3/library/multiprocessing.html#conte... https://stackoverflow.com/questions/72497140
kstrauser|9 months ago
Sure, close TCP connections before you kill the whole thing. I couldn't care less about most objects, though.
codethief|9 months ago
…which can also be a great source of subtle bugs if you're writing a cross-platform application.