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

Use dict versioning to avoid dict/attribute lookups #2313

Closed
scoder opened this issue Jun 8, 2018 · 0 comments
Closed

Use dict versioning to avoid dict/attribute lookups #2313

scoder opened this issue Jun 8, 2018 · 0 comments

Comments

@scoder
Copy link
Contributor

scoder commented Jun 8, 2018

  • Faster lookup of globals: f89efd4
  • Avoid override checks on cpdef method calls: 618020b
@scoder scoder added this to the 0.29 milestone Jun 8, 2018
scoder added a commit that referenced this issue Jun 8, 2018
… calls for Python subclasses.

This does not help for classes with "__slots__", nor does it help for alternating calls to different objects.
There is probably still space for improvements, e.g. by using an array of object dict versions.
See #2313.
@scoder scoder closed this as completed Jun 8, 2018
scoder added a commit that referenced this issue Jun 8, 2018
… slots by assuming that slot attributes themselves never override type fields in the parent class (Python raises an error if you try).

See #2313.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant