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: Statically allocate and initialize the latin1 characters.
Type: performance Stage: resolved
Components: Interpreter Core Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: JelleZijlstra, Mark.Shannon, eric.snow, gvanrossum, kj, kumaraditya, miss-islington
Priority: normal Keywords: patch

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

Pull Requests
URL Status Linked Edit
PR 31616 merged kumaraditya, 2022-02-28 13:04
PR 31805 merged JelleZijlstra, 2022-03-11 02:24
Messages (3)
msg414195 - (view) Author: Kumar Aditya (kumaraditya) * (Python triager) Date: 2022-02-28 13:02
Statically allocate and initialize the latin1 characters. This *should* make iterating over a ascii strings faster as it avoids an atomic read in PyInterpreterState_GET() to get unicode state in get_latin1_char, makes get_latin1_char branchless and can be used in deepfreeze for identifiers.
msg414819 - (view) Author: miss-islington (miss-islington) Date: 2022-03-09 23:02
New changeset 8714b6fa27271035dd6dd3514e283f92d669321d by Kumar Aditya in branch 'main':
bpo-46881: Statically allocate and initialize the latin1 characters. (GH-31616)
https://github.com/python/cpython/commit/8714b6fa27271035dd6dd3514e283f92d669321d
msg414896 - (view) Author: Ken Jin (kj) * (Python committer) Date: 2022-03-11 09:05
New changeset 54ab9ad312ea53db40e31712454272e1d4c0315f by Jelle Zijlstra in branch 'main':
bpo-46881: Fix refleak from GH-31616 (GH-31805)
https://github.com/python/cpython/commit/54ab9ad312ea53db40e31712454272e1d4c0315f
History
Date User Action Args
2022-04-11 14:59:56adminsetgithub: 91037
2022-03-11 09:05:16kjsetnosy: + kj
messages: + msg414896
2022-03-11 02:24:40JelleZijlstrasetnosy: + JelleZijlstra

pull_requests: + pull_request29906
2022-03-10 06:26:24kumaradityasetstatus: open -> closed
type: performance
resolution: fixed
stage: patch review -> resolved
2022-03-09 23:02:09miss-islingtonsetnosy: + miss-islington
messages: + msg414819
2022-02-28 13:04:52kumaradityasetkeywords: + patch
stage: patch review
pull_requests: + pull_request29741
2022-02-28 13:02:28kumaradityacreate