https://github.com/python/cpython/commit/f65e2a209562b9a4163d5a835df9806c7bb99786
commit: f65e2a209562b9a4163d5a835df9806c7bb99786
branch: main
author: Shamil <[email protected]>
committer: pablogsal <[email protected]>
date: 2026-10-22T18:42:46Z
summary:
gh-160245: Reduce padding in the Memo struct in the parser (#160266)
files:
A
Misc/NEWS.d/next/Core_and_Builtins/2026-10-22-14-45-00.gh-issue-160245.mEmO24.rst
M Parser/pegen.h
diff --git
a/Misc/NEWS.d/next/Core_and_Builtins/2026-10-22-14-45-00.gh-issue-160245.mEmO24.rst
b/Misc/NEWS.d/next/Core_and_Builtins/2026-10-22-14-45-00.gh-issue-160245.mEmO24.rst
new file mode 100644
index 00000000000000..f62d937f556caa
--- /dev/null
+++
b/Misc/NEWS.d/next/Core_and_Builtins/2026-10-22-14-45-00.gh-issue-160245.mEmO24.rst
@@ -0,0 +1,2 @@
+Reduce the size of parser memo entries on 64-bit platforms by reordering
+fields to remove padding. Patch by Shamil Abdulaev.
diff --git a/Parser/pegen.h b/Parser/pegen.h
index 44f99310132839..95ad2c9b7c0a84 100644
--- a/Parser/pegen.h
+++ b/Parser/pegen.h
@@ -31,8 +31,8 @@
typedef struct _memo {
int type;
- void *node;
int mark;
+ void *node;
struct _memo *next;
} Memo;
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]