[New-bugs-announce] [issue36839] Support the buffer protocol in code objects

Dino Viehland report at bugs.python.org
Tue May 7 15:56:26 EDT 2019


New submission from Dino Viehland <dinoviehland at 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 <report at bugs.python.org>
<https://bugs.python.org/issue36839>
_______________________________________


More information about the New-bugs-announce mailing list