Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Nov 24, 2020

@pablogsal pablogsal force-pushed the load_method branch 3 times, most recently from 8403dfd to e34475d Compare November 24, 2020 22:34
@pablogsal pablogsal self-assigned this Dec 14, 2020
@pablogsal pablogsal changed the title bpo-42115: Add an opcode cache for LOAD_ATTR bpo-42115: Add an opcode cache for LOAD_METHOD Dec 14, 2020
Python/ceval.c Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Let's maybe add a comment clarifying what this knob does?

@1st1
Copy link
Member

1st1 commented Dec 15, 2020

Add a NEWS update?

Also this looks pretty similar to my original patch but I didn't compare. Were there any changes to it, I'm just curious?

@pablogsal
Copy link
Member Author

pablogsal commented Dec 15, 2020

Also this looks pretty similar to my original patch but I didn't compare. Were there any changes to it, I'm just curious?

The idea is the same but this part is simplified:

https://github.com/python/cpython/pull/23503/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59deR3866-R3875

I am also using _PyDict_GetItem_KnownHash to fetch the items for slightly better performance and the rest is just modifications to account for the code changes around.

I am waiting for Inada-san to confirm the benchmarks before landing and adding the NEWS item

@pablogsal
Copy link
Member Author

I am closing this as the benchmarks are not that exiting after rebasing and benchmarking again :(

@pablogsal pablogsal closed this Dec 16, 2020
gvanrossum added a commit to gvanrossum/cpython that referenced this pull request Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants