Repository navigation
Conversation
|
for sentinel and ParamSpec will want ot make sure the C code that often calls them bypasses argument parsing when appropriate like we've done for a couple other types. May also make sense to make the objects/types their public names (ex. |
This reverts commit caf8a54.
|
Separated memoryview in #162471. Checked that there is already no extra argument parsing. For sentinel the call chain is Updated to use public names, before: After: |
1. property
Add
@vectorcalltoproperty.__init__(the constructor's argument parsing lives there;tp_newisPyType_GenericNew). There is no change of exception text for bad arguments.Benchmark:
Details
2. sentinel
Add
@vectorcalltosentinel.__new__. The keyword-onlyreprparameter means AC routes calls through a helper, but the vectorcall still avoids constructing an argument tuple.Benchmark:
Details
3. typing
Add
@vectorcallto theTypeAliasType,ParamSpecArgsandParamSpecKwargsconstructors. No change of exception text for bad arguments.Benchmark:
Details