Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Oct 23, 2020

https://bugs.python.org/issue42115

The advantage of doing this is that the code in ceval.c is much easier to manage now.

@pablogsal pablogsal requested a review from a team as a code owner October 23, 2020 01:54
@pablogsal pablogsal changed the title Refactor the opcode cache into its own file bpo-42115: Refactor the opcode cache into its own file Oct 23, 2020
@pablogsal pablogsal requested a review from methane October 23, 2020 01:55
@1st1
Copy link
Member

1st1 commented Oct 23, 2020

Overall +1. @pablogsal please copy me in opcode cache PRs ;)

@pablogsal pablogsal force-pushed the bpo-42115 branch 4 times, most recently from 951a785 to c38a89c Compare October 23, 2020 03:34
Apply suggestions from code review

Co-authored-by: Yury Selivanov <yury@edgedb.com>
@pablogsal
Copy link
Member Author

pablogsal commented Oct 23, 2020

I checked and we lose quite a bit of performance (3-4%) due to the extra function calls. I think I am going to close this for now until I devise some better mechanism (maybe the code object mutation is the only way to keep the inlining but separate the different code) :(

@pablogsal pablogsal closed this Oct 23, 2020
@pablogsal pablogsal deleted the bpo-42115 branch May 19, 2021 19:00
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