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

DOC: attribute PyPy for the idea behind the optimization #23036

Merged
merged 2 commits into from
Oct 30, 2020

Conversation

mattip
Copy link
Contributor

@mattip mattip commented Oct 30, 2020

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.

@@ -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.)
Copy link
Member

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 :-)

Copy link
Member

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.

@vstinner
Copy link
Member

@vstinner 's "faster-python" document (which seems to be lost, the link in the mail is broken)

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 ;-)

@vstinner
Copy link
Member

cc @pablogsal @1st1 @methane

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
@pablogsal
Copy link
Member

Thanks for the PR @mattip !

@vstinner
Copy link
Member

I like the final merged change, thanks ;-)

adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
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 issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants