Skip to content

gh-100110: Specialize FOR_ITER for tuples#100109

Merged
markshannon merged 2 commits into
python:mainfrom
Fidget-Spinner:for_iter_tuple
Dec 9, 2022
Merged

gh-100110: Specialize FOR_ITER for tuples#100109
markshannon merged 2 commits into
python:mainfrom
Fidget-Spinner:for_iter_tuple

Conversation

@Fidget-Spinner

@Fidget-Spinner Fidget-Spinner commented Dec 8, 2022

Copy link
Copy Markdown
Member

@netlify

netlify Bot commented Dec 8, 2022

Copy link
Copy Markdown

Deploy Preview for python-cpython-preview canceled.

Name Link
🔨 Latest commit e3504e7
🔍 Latest deploy log https://app.netlify.com/sites/python-cpython-preview/deploys/6391d802c8b963000994af92

@Fidget-Spinner Fidget-Spinner changed the title Specialize FOR_ITER for tuples gh-100110: Specialize FOR_ITER for tuples Dec 8, 2022
@markshannon

Copy link
Copy Markdown
Member

I'm not sure that I entirely trust those stats, yet.
They are probably right though, and I guess we can revert this if the stats prove to be wrong.

@markshannon markshannon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
Have you attempted to benchmark this?

@Fidget-Spinner

Copy link
Copy Markdown
Member Author

Looks good. Have you attempted to benchmark this?

No. It's just one specialisation. I doubt anything in pyperformance will change.

@markshannon

markshannon commented Dec 8, 2022

Copy link
Copy Markdown
Member

I'm running the stats on it.
Partly to see if this PR makes the expected difference, and partly just to see if the stats workflow does what I expect.

@markshannon

Copy link
Copy Markdown
Member

The stats show what I would expect. No specialization failures for tuples, and an increase of hit rates for FOR_ITER from about 66% to 79%.

@markshannon
markshannon merged commit 748c6c0 into python:main Dec 9, 2022
@Fidget-Spinner
Fidget-Spinner deleted the for_iter_tuple branch December 10, 2022 13:08
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.

3 participants