Title: Use `PyMem_Raw*` allocator for OpenSSL in `_ssl` and `_hashlib` · Issue #156228 · python/cpython · GitHub
Open Graph Title: Use `PyMem_Raw*` allocator for OpenSSL in `_ssl` and `_hashlib` · Issue #156228 · python/cpython
X Title: Use `PyMem_Raw*` allocator for OpenSSL in `_ssl` and `_hashlib` · Issue #156228 · python/cpython
Description: OpenSSL allows overriding its allocator with CRYPTO_set_mem_functions(), currently _ssl and _hashopenssl use the default system malloc. I am filing this issue to investigate if we can set it to PyMem_Raw* so that on free-threading it use...
Open Graph Description: OpenSSL allows overriding its allocator with CRYPTO_set_mem_functions(), currently _ssl and _hashopenssl use the default system malloc. I am filing this issue to investigate if we can set it to PyM...
X Description: OpenSSL allows overriding its allocator with CRYPTO_set_mem_functions(), currently _ssl and _hashopenssl use the default system malloc. I am filing this issue to investigate if we can set it to PyM...
Opengraph URL: https://github.com/python/cpython/issues/156228
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use `PyMem_Raw*` allocator for OpenSSL in `_ssl` and `_hashlib`","articleBody":"\nOpenSSL allows overriding its allocator with `CRYPTO_set_mem_functions()`, currently `_ssl` and `_hashopenssl` use the default system malloc. I am filing this issue to investigate if we can set it to `PyMem_Raw*` so that on free-threading it uses mimalloc which would scale better. Previously, there have been reports of high memory usage of ssl on glibc allocator, it would be worth checking if doing this fixes that as well.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-156229\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/kumaraditya303","@type":"Person","name":"kumaraditya303"},"datePublished":"2026-08-22T13:42:01Z","url":"https://github.com/python/cpython/issues/156228"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:f04c984d-53b7-7c5c-dade-dcbaf03b639a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F84:6B7A6:DD883D:12374A4:6AFE92B6 |
| html-safe-nonce | 87a8eb7de21677e76ff8fa375a9b02a39c206ae69ae622b473c8a7325c929019 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Rjg0OjZCN0E2OkREODgzRDoxMjM3NEE0OjZBRkU5MkI2IiwidmlzaXRvcl9pZCI6IjgxMDI5OTE2OTczNTg1MjUxMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d50c00b5d685338c075d16d1bdb57537cdebe2d0248f0c5fa62a418ee33e8b33 |
| hovercard-subject-tag | issue:5222174835 |
| 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/156228/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b717b08038fd083418e3ef35cb2eb03701901d8584e0ee40519fe381843a3c8/python/cpython/issues/156228 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b717b08038fd083418e3ef35cb2eb03701901d8584e0ee40519fe381843a3c8/python/cpython/issues/156228 |
| og:image:alt | OpenSSL allows overriding its allocator with CRYPTO_set_mem_functions(), currently _ssl and _hashopenssl use the default system malloc. I am filing this issue to investigate if we can set it to PyM... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kumaraditya303 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width