FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-100239: specialize BINARY_OP/SUBSCR for list-slice by iritkatriel · Pull Request #132626 · python/cpython · GitHub

/ cpython Public

gh-100239: specialize BINARY_OP/SUBSCR for list-slice - #132626

Merged
iritkatriel merged 9 commits into
python:mainfrom
iritkatriel:list_subscr
May 1, 2025
Merged

gh-100239: specialize BINARY_OP/SUBSCR for list-slice#132626
iritkatriel merged 9 commits into
python:mainfrom
iritkatriel:list_subscr

Conversation

iritkatriel commented Apr 17, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

markshannon commented Apr 17, 2025
edited
Loading

Copy link
Copy Markdown
Member

list_subscript/_PyList_Subscript is the general subscript function for lists. I think we want to use a more specialized function that only works for slices. i.e this code: https://github.com/python/cpython/blob/main/Objects/listobject.c#L3614-L3618

Copy link
Copy Markdown
Member

The stats diff show a 50x increase in "subscr tuple slice" as a cause of specialization failure. Any idea why that might be? I can't see any reason for it.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL