Skip to content
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

gh-112320: Implement on-trace confidence tracking for branches #112321

Merged
merged 7 commits into from
Dec 12, 2023

Conversation

gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented Nov 22, 2023

@gvanrossum
Copy link
Member Author

@markshannon Is this what you had in mind for confidence tracking? I just picked a random cut-off of about 1/3rd.

@gvanrossum
Copy link
Member Author

@mdboom Could you check that I did everything right for adding a new field to the stats?

@markshannon
Copy link
Member

Yes, this is what I had in mind.

We could also reduce the confidence for type checks, although it might not make a difference in practice unless we increase the max trace length considerably.

Python/optimizer.c Outdated Show resolved Hide resolved
Python/optimizer.c Outdated Show resolved Hide resolved
Python/optimizer.c Outdated Show resolved Hide resolved
@gvanrossum gvanrossum enabled auto-merge (squash) December 12, 2023 21:20
@gvanrossum gvanrossum merged commit 7316dfb into python:main Dec 12, 2023
32 checks passed
@gvanrossum gvanrossum deleted the branch-confidence branch December 13, 2023 00:14
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants