Copy on writes are a big problem in large Python application that rely on 
multiple processes sharing the same memory.

I just sent out a patch introduces Immortal Instances which allows the user to 
bypass reference counting on specific objects to avoid CoW on forked processes. 
This has helped in reducing the memory constraints in some of our applications.

The PR has a more in-depth explanation about the change. Looking forward to get 
your thoughts.

Github PR: https://github.com/python/cpython/pull/19474
Bug Report: https://bugs.python.org/issue40255


- Eddie E.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/CKXZE5NZWCR3BCQGP33BWKJ7MND5TD2Y/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to