gh-155141: Improve stack-use estimation for keyword calls (#155785) · python/cpython@e13ecae · GitHub
Skip to content

Commit e13ecae

Browse files
authored
gh-155141: Improve stack-use estimation for keyword calls (#155785)
1 parent 50ed1ec commit e13ecae

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

Lib/test/test_compile.py

Lines changed: 24 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compile pure-keyword calls with 16 to 29 keyword arguments using the faster
2+
``CALL_KW`` instruction. This includes common cases such as dataclass
3+
constructors with many fields.

Python/codegen.c

Lines changed: 5 additions & 2 deletions

0 commit comments

Comments
 (0)