-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
DOC: attribute PyPy for the idea behind the optimization #23036
Conversation
Doc/whatsnew/3.10.rst
Outdated
@@ -261,7 +261,8 @@ Optimizations | |||
|
|||
* The ``LOAD_ATTR`` instruction now uses new "per opcode cache" mechanism. | |||
It is about 36% faster now. (Contributed by Pablo Galindo and Yury Selivanov | |||
in :issue:`42093`.) | |||
in :issue:`42093`, based on ideas from Victor Stinner and the original | |||
implementation in PyPy.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have nothing to do with that! Please remove my name :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the only thing that I did was to say to some core devs (INADA-san, Yury and Pablo?) that PyPy has some cool optimizations that we could "easily" reimplement in CPython.
The website can be found at: https://faster-cpython.readthedocs.io/ Enjoy the first new pages about garbage collection and a tracing GC for CPython ;-) |
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Thanks for the PR @mattip ! |
I like the final merged change, thanks ;-) |
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Based on this tweet, the origin for the idea is the mail from 2016, which mentions @vstinner 's "faster-python" document (which seems to be lost, the link in the mail is broken). In particular this optimization was first implemented in PyPy.
While normally I don't care about attribution, the recent interchange on the python-dev mailing list that implied PyPy is not important got my hackles up, especially because this is the second such optimization implemented with no mention of PyPy.