This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: use global singletons for single byte bytes objects in deepfreeze
Type: enhancement Stage: resolved
Components: Build Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: erlendaasland, gvanrossum, kumaraditya
Priority: normal Keywords: patch

Created on 2022-01-22 11:04 by kumaraditya, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 30781 merged kumaraditya, 2022-01-22 11:05
Messages (3)
msg411245 - (view) Author: Kumar Aditya (kumaraditya) * (Python triager) Date: 2022-01-22 11:04
By using global singletons for single byte bytes objects in deepfreeze, there is no need to generate c code for it so it reduces the size of generated c file and reduces memory use of the objects when they are allocated on the heap as now they are statically allocated and they are already immortal.
msg411390 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2022-01-23 17:46
New changeset ca78130d7eb5265759697639e42487ec6d0a4caf by Kumar Aditya in branch 'main':
bpo-46471: Use single byte singletons (GH-30781)
https://github.com/python/cpython/commit/ca78130d7eb5265759697639e42487ec6d0a4caf
msg411398 - (view) Author: Erlend E. Aasland (erlendaasland) * (Python triager) Date: 2022-01-23 18:41
Can we close this, or are you expecting more changes?
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90629
2022-01-23 21:33:18gvanrossumsetstatus: pending -> closed
resolution: fixed
stage: patch review -> resolved
2022-01-23 18:41:22erlendaaslandsetstatus: open -> pending
nosy: + erlendaasland
messages: + msg411398

2022-01-23 17:46:04gvanrossumsetmessages: + msg411390
2022-01-22 11:05:13kumaradityasetkeywords: + patch
stage: patch review
pull_requests: + pull_request28966
2022-01-22 11:04:42kumaradityacreate