Skip to content

Make Frame stop being a dict subclass#5761

Merged
JukkaL merged 2 commits intomasterfrom
binder
Oct 10, 2018
Merged

Make Frame stop being a dict subclass#5761
JukkaL merged 2 commits intomasterfrom
binder

Conversation

@msullivan
Copy link
Copy Markdown
Collaborator

This allows the 'unreachable' flag to not need to be accessed via
GetAttr, and for dict operations to be done via dict primitives
(though I'm going to put up a mypyc change soon that makes that second
part always true.)

Amazingly, this gives a ~200ms speedup on self check (like 6%!).

This allows the 'unreachable' flag to not need to be accessed via
GetAttr, and for dict operations to be done via dict primitives.

Amazingly, this gives a ~200ms speedup on self check (like 6%!).
Copy link
Copy Markdown
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice -- I like that this (in a sense) removes an awkward subclass and speed things up.

Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! I wonder if we have other similar non-obvious big inefficiencies lurking inside the code.

@JukkaL JukkaL merged commit e170f6b into master Oct 10, 2018
@msullivan msullivan deleted the binder branch October 10, 2018 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants