FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-40137: Optimize _PyType_GetModuleByDef() loop by vstinner · Pull Request #25505 · python/cpython · GitHub

/ cpython Public

bpo-40137: Optimize _PyType_GetModuleByDef() loop - #25505

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:type_getmodulebyref4
Apr 21, 2021
Merged

bpo-40137: Optimize _PyType_GetModuleByDef() loop#25505
vstinner merged 1 commit into
python:masterfrom
vstinner:type_getmodulebyref4

Conversation

vstinner commented Apr 21, 2021
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

PyType_Ready() now ensures that a type MRO cannot be empty.

_PyType_GetModuleByDef() no longer checks "i < PyTuple_GET_SIZE(mro)"
at the first loop iteration to optimize the most common case, when
the argument is the defining class.

https://bugs.python.org/issue40137

PyType_Ready() now ensures that a type MRO cannot be empty.

_PyType_GetModuleByDef() no longer checks "i < PyTuple_GET_SIZE(mro)"
at the first loop iteration to optimize the most common case, when
the argument is the defining class.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL