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

bpo-42927: Update the What's new entry for LOAD_ATTR optimizations #24383

Merged
merged 1 commit into from
Jan 31, 2021

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Jan 30, 2021

current most performance attribute access method (faster than slots).
(Contributed by Pablo Galindo and Yury Selivanov in :issue:`42093`, based on
ideas implemented originally in PyPy and MicroPython.)
is about 36% faster now for regular attributes and 30% for slots.
Copy link
Member

Choose a reason for hiding this comment

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

Honestly the 30% is a pretty wild guess -- your 36% clearly is not. I'm not even sure how to really measure this, given that when I build Python from source it's somewhat slower than the python.org binary. I assume this is because of PGO or other compiler flags. (Not --with-pydebug, that is much slower still.)

Up to you if you still want to put it this way.

Copy link
Member Author

Choose a reason for hiding this comment

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

I did some more rigurous measurements for slots and I have updated the text.

@gvanrossum
Copy link
Member

Wow!

@pablogsal pablogsal deleted the bpo-42927 branch May 19, 2021 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants