Skip to content

Implement vectorcall for BaseException to optimize creation of exception instances #118702

Closed
@vstinner

Description

@vstinner

Currently, creating an instance of an built-in exception uses the old METH_VARARGS calling convention which creates a temporary tuple to pass positional arguments.

I propose to implement vectorcall for BaseException.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions