Skip to content

gh-157047: Support sharing of complex types in subinterpreters - #157051

Open
lgeiger wants to merge 2 commits into
python:mainfrom
lgeiger:subinterpreter-share-complex
Open

gh-157047: Support sharing of complex types in subinterpreters#157051
lgeiger wants to merge 2 commits into
python:mainfrom
lgeiger:subinterpreter-share-complex

Conversation

@lgeiger

@lgeiger lgeiger commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

This PR adds support for sharing complex types in subinterpreters similar to int/float which is much faster than going via pickle.

@read-the-docs-community

read-the-docs-community Bot commented Sep 6, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34427549 | 📁 Comparing 713afa0 against main (09117bc)

  🔍 Preview build  

2 files changed
± library/concurrent.interpreters.html
± whatsnew/changelog.html

@lgeiger lgeiger changed the title gh-157047: Support sharing of complex types in subinterpreters gh-157047: Support sharing of complex types in subinterpreters Sep 6, 2026
@@ -0,0 +1 @@
Support sharing of :class:`complex` types in subinterpreters.

@eendebakpt eendebakpt Sep 7, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could already share via pickle correct? This pr is then a performance result.

Out of curiosity: do you have a benchmark?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I reworded it to follow news entry style of #111439 and #111435

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants