Message259522
From the two checks on Python/compile.c:
+ expr_ty meth = e->v.Call.func;
[...]
+ /* Check [...] that
+ the call doesn't have keyword parameters. */
[...]
+ /* Check that there are no *varargs types of arguments. */
[...]
I just wonder how many times those kind of checks/guards are done
on the whole Cpython code base (the second one seems expensive).
(Naive Idea):
Wouldn't be some kind of fast function description (e.g. bit flags
or 'e->v.Call.func.desc') generally helpful? The function description
could have: 'has_keywords' or 'has_varargs', ...
Thanks in advance! |
|
Date |
User |
Action |
Args |
2016-02-03 22:15:59 | francismb | set | recipients:
+ francismb, brett.cannon, ncoghlan, vstinner, yselivanov |
2016-02-03 22:15:59 | francismb | set | messageid: <1454537759.66.0.81188696519.issue26219@psf.upfronthosting.co.za> |
2016-02-03 22:15:59 | francismb | link | issue26219 messages |
2016-02-03 22:15:59 | francismb | create | |
|