From: zikcheng Date: Wed, 11 May 2022 06:09:40 +0000 (+0800) Subject: gh-92632: Make function starunpack_helper run faster when encounters starred argument... X-Git-Tag: v3.12.0a1~1587 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc091204f92a72cc7f9ad3af2055b88dcd538161;p=thirdparty%2FPython%2Fcpython.git gh-92632: Make function starunpack_helper run faster when encounters starred argument. (GH-92655) --- diff --git a/Python/compile.c b/Python/compile.c index 45944ae85e38..51ef8fd17a10 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) {