News for hackers. Stuff that matters.
Re:All Bitcoin private keys are on this website by wyldfire on Tuesday December 21, 2021 @09:17AM (#29637561)
multiprocessing relies on the OS' fork() to share the memory transparently to the child(ren). The pages containing the memory will refer back to the same physical page until they're written to. This is what grandparent meant by "sharing memory".

multiprocessing also provides a way to access the OS' explicit shared memory usually used as an IPC mechanism.

Re:All Bitcoin private keys are on this website by uniqueuid on Tuesday December 21, 2021 @09:23AM (#29637599)
Right, thanks for clearing that up.

multiprocessing's "shared memory" facility is for writable memory.

What I described is extremely handy as you simply move the parsing code up in the script, before your function definition, and "magically" gain memory efficiency.