Skip to content

Commit f65e2a2

Browse files
authored
gh-160245: Reduce padding in the Memo struct in the parser (#160266)
1 parent 86758d1 commit f65e2a2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Reduce the size of parser memo entries on 64-bit platforms by reordering
2+
fields to remove padding. Patch by Shamil Abdulaev.

‎Parser/pegen.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
typedef struct _memo {
3333
int type;
34-
void *node;
3534
int mark;
35+
void *node;
3636
struct _memo *next;
3737
} Memo;
3838

0 commit comments

Comments
 (0)