Skip to content

Use PEP 669 Low Impact Monitoring to reduce overhead #1746

Open
@intgr

Description

Is your feature request related to a problem? Please describe.
coveragepy adds significant overhead to test execution in CI.

And this got much worse with Python 3.12 due to CPython performance regression (#1665, python/cpython#107674, maybe will be fixed by python/cpython#107841)

Describe the solution you'd like
PEP 669 – Low Impact Monitoring for CPython (sys.monitoring) should be explored to see if it claws back lost performance or even results in performance gains. Though AFAIK it is not proven yet whether it will help.

Additional context
As I understand, this is already under development. But I wanted to open an issue anyway to track progress.
In #1665 (comment) (Oct 25, 2023) nedbat states:

I have started on code to use the new PEP 669 monitoring, but I haven't made much progress on it. I'd welcome help.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions