-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use PEP 669 Low Impact Monitoring to reduce overhead #1746
Comments
sys.monitoring support is in coverage.py 7.4.0, though it only makes line coverage faster, not branch coverage. I'm still working on the support that will be faster for branch coverage. |
Awesome, thanks! I'll test |
Indeed |
this disables branch coverage (coverage of jumps for loops / if statements / lambdas / try-except / etc.) but drastically improves CI time we can revert this out once nedbat/coveragepy#1746 is resolved and we're on a sufficiently new-enough version of coverage <!-- Describe your PR here. -->
this disables branch coverage (coverage of jumps for loops / if statements / lambdas / try-except / etc.) but drastically improves CI time we can revert this out once nedbat/coveragepy#1746 is resolved and we're on a sufficiently new-enough version of coverage <!-- Describe your PR here. -->
this disables branch coverage (coverage of jumps for loops / if statements / lambdas / try-except / etc.) but drastically improves CI time we can revert this out once nedbat/coveragepy#1746 is resolved and we're on a sufficiently new-enough version of coverage <!-- Describe your PR here. -->
this disables branch coverage (coverage of jumps for loops / if statements / lambdas / try-except / etc.) but drastically improves CI time we can revert this out once nedbat/coveragepy#1746 is resolved and we're on a sufficiently new-enough version of coverage <!-- Describe your PR here. -->
this disables branch coverage (coverage of jumps for loops / if statements / lambdas / try-except / etc.) but drastically improves CI time we can revert this out once nedbat/coveragepy#1746 is resolved and we're on a sufficiently new-enough version of coverage <!-- Describe your PR here. -->
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:
The text was updated successfully, but these errors were encountered: