]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-148675: Optimize arraydescr structure: use char[3] (GH-149455)
authorVictor Stinner <vstinner@python.org>
Wed, 6 May 2026 14:28:11 +0000 (16:28 +0200)
committerGitHub <noreply@github.com>
Wed, 6 May 2026 14:28:11 +0000 (16:28 +0200)
commit9274d969f3b8d66a01ae704cac866ceb9e207d0e
treedaffbc5dfea740dd4e9cb62683a76e7229043550
parentaeb02ac42b113bff8218df890b7102d8abc66a9d
gh-148675: Optimize arraydescr structure: use char[3] (GH-149455)

Replace "const char *typecode;" with "char typecode[3];" to make the
arraydescr structure smaller and avoids an indirection.
Modules/arraymodule.c