diff options
author | zikcheng <surfingbyte@gmail.com> | 2022-05-11 06:09:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 06:09:40 (GMT) |
commit | dc091204f92a72cc7f9ad3af2055b88dcd538161 (patch) | |
tree | 5816f654f0df4701869753a6adf70df1130b8acb /Python/compile.c | |
parent | 87f849c775ca54f56ad60ebf96822b93bbd0029a (diff) | |
download | cpython-dc091204f92a72cc7f9ad3af2055b88dcd538161.zip cpython-dc091204f92a72cc7f9ad3af2055b88dcd538161.tar.gz cpython-dc091204f92a72cc7f9ad3af2055b88dcd538161.tar.bz2 |
gh-92632: Make function starunpack_helper run faster when encounters starred argument. (GH-92655)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index 45944ae..51ef8fd 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -4375,6 +4375,7 @@ starunpack_helper(struct compiler *c, asdl_expr_seq *elts, int pushed, expr_ty elt = asdl_seq_GET(elts, i); if (elt->kind == Starred_kind) { seen_star = 1; + break; } } if (!seen_star && !big) { |