Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ENH,MAINT: Use METH_FASTCALL for scalar methods forwarding #28814

Open
@seberg

Description

@seberg

The scalar methods still don't use METH_FASTCALL for their forwarding. Changing this would improve performance at least if kwargs are involved (maybe just moderately, these are slow anyway due to creating an array).

It may also just simplify the code a bit more. E.g. NumPy array methods (methods.c) already forward via fastcall.

Related to this, it is nice to call methods with the Python string, rather than the C char * for speed reasons.

(This is fully in C code and requires acquiring understanding how the Python C-API works for method calls.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    03 - MaintenanceProjectPossible project, may require specific skills and long commitment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions