Title: Disable tracking of frozenset objects with immutables in the GC · Issue #140232 · python/cpython · GitHub
Open Graph Title: Disable tracking of frozenset objects with immutables in the GC · Issue #140232 · python/cpython
X Title: Disable tracking of frozenset objects with immutables in the GC · Issue #140232 · python/cpython
Description: Feature or enhancement Proposal: Frozenset objects with immutable objects do not need to be tracked by the GC. A similar optimization is already in place for tuples (#48938, #140204). In particular for longer running programs with immuta...
Open Graph Description: Feature or enhancement Proposal: Frozenset objects with immutable objects do not need to be tracked by the GC. A similar optimization is already in place for tuples (#48938, #140204). In particular...
X Description: Feature or enhancement Proposal: Frozenset objects with immutable objects do not need to be tracked by the GC. A similar optimization is already in place for tuples (#48938, #140204). In particular...
Opengraph URL: https://github.com/python/cpython/issues/140232
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Disable tracking of frozenset objects with immutables in the GC","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nFrozenset objects with immutable objects do not need to be tracked by the GC. A similar optimization is already in place for tuples (https://github.com/python/cpython/issues/48938, https://github.com/python/cpython/pull/140204). \nIn particular for longer running programs with immutable frozensets this is benefical.\n\n\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-140234\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/eendebakpt","@type":"Person","name":"eendebakpt"},"datePublished":"2025-10-16T20:45:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/140232/cpython/issues/140232"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fcba85f8-8265-2b14-a0c5-186d0ebbf0c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A67A:3D95EB:29753F:368A65:696B39D2 |
| html-safe-nonce | f28312ecc3bf7b031e47aae0f08e889edca2ef6c0f177b25fc7c06ca5ce17535 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjdBOjNEOTVFQjoyOTc1M0Y6MzY4QTY1OjY5NkIzOUQyIiwidmlzaXRvcl9pZCI6IjcyNzA2NDIxNzA4MzIwNDI0NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 10e39baba59fd64de130af7ffaf6ba445640a785fac1219235a384483dd4e6b5 |
| hovercard-subject-tag | issue:3523461358 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/140232/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2910df5b3583d393d1424b7a310b310862e7a8dbf2da241fa1307262ad5c6567/python/cpython/issues/140232 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2910df5b3583d393d1424b7a310b310862e7a8dbf2da241fa1307262ad5c6567/python/cpython/issues/140232 |
| og:image:alt | Feature or enhancement Proposal: Frozenset objects with immutable objects do not need to be tracked by the GC. A similar optimization is already in place for tuples (#48938, #140204). In particular... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eendebakpt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width