Skip to content

bpo-32346: speed up slot lookup during class creation#4902

Closed
pitrou wants to merge 9 commits intopython:masterfrom
pitrou:speedup_type_creation
Closed

bpo-32346: speed up slot lookup during class creation#4902
pitrou wants to merge 9 commits intopython:masterfrom
pitrou:speedup_type_creation

Conversation

@pitrou
Copy link
Member

@pitrou pitrou commented Dec 16, 2017

Instead of looking up every possible slot in every class along the MRO (generating possibly hundreds of dict lookups), cache the known descriptors of each type so that finding them again is simply a matter of walking a tuple.

https://bugs.python.org/issue32346

Loading
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