Uh oh!
There was an error while loading. Please reload this page.
bpo-29312: use METH_FASTCALL for dict.update - #14589
Conversation
35484d9 to
06302feComparejdemeyer
commented
Jul 8, 2019
Here are some benchmarks:
So the calls |
vstinner
left a comment
There was a problem hiding this comment.
Your PR title says "use METH_FASTCALL for dict.update" but you modified PyDictType.tp_init as well. Can you please move your tp_init change in a separated PR?
jdemeyer
commented
Jul 9, 2019
I changed the branch to match the title, reverting the changes to Note that this PR has more code duplication: the code paths for |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
That sounds redundant with dict_merge() which calls PyMapping_Keys(). Maybe dict_merge() could be modified to dispatch to PyDict_MergeFromSeq2() if PyMapping_Keys() keys with an attribute error, rather than trying to get the attribute twice?
It's not directly related to your change, it can be done/discussed in a separated PR.
There was a problem hiding this comment.
I agree, I also noticed this. There is some room for improvement here. Let's do it in a new PR after this is merged.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Base PR for other PRs that want to play with `type.__call__` such as #13930 and #14589. The author is really @markshannon I just made the PR. https://bugs.python.org/issue37207 Automerge-Triggered-By: @encukou
jdemeyer
commented
Aug 16, 2019
Rebased to latest master, using #14682. |
vstinner
commented
Aug 19, 2019
@methane: I let you decide what do to do with this change. |
Base PR for other PRs that want to play with `type.__call__` such as python#13930 and python#14589. The author is really @markshannon I just made the PR. https://bugs.python.org/issue37207 Automerge-Triggered-By: @encukou
Uh oh!
There was an error while loading. Please reload this page.
Base PR for other PRs that want to play with `type.__call__` such as python#13930 and python#14589. The author is really @markshannon I just made the PR. https://bugs.python.org/issue37207 Automerge-Triggered-By: @encukou
Base PR for other PRs that want to play with `type.__call__` such as python#13930 and python#14589. The author is really @markshannon I just made the PR. https://bugs.python.org/issue37207 Automerge-Triggered-By: @encukou
iritkatriel
commented
Apr 11, 2022
https://bugs.python.org/issue29312 is closed. What is that status of this PR? |
methane
commented
Apr 12, 2022
Yes. This PR is also rejected. |
https://bugs.python.org/issue29312