New submission from Dino Viehland <dinoviehl...@gmail.com>:
Many Python deployments involve large code based that are used in scenarios where processes are fork-and-exec'd. When running in these environments code objects can end up occupying a lot of memory. Because the code objects are on random pages and are ref counted the ref counts can cause all of the code to not be shared across processes. If code objects supported the buffer protocol it would be possible to load code from a memory mapped file which is shared across all of the processes. ---------- assignee: dino.viehland components: Interpreter Core messages: 341808 nosy: dino.viehland priority: normal severity: normal stage: needs patch status: open title: Support the buffer protocol in code objects type: enhancement versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36839> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com