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
PATCH: Attribute lookup caching #45901
Comments
I've attached a patch to accelerate type and instance lookups using a http://spreadsheets.google.com/ccc?key=pHIJrYc_pnIUpTm6QSG2gZg&hl=en_US Everything tested in fastattr_test.py is faster except list.__init__ and In benchmarks the patch does a little slower, it may be in part because It works in a fairly obvious way. Every type has a tp_cache, which is a The cache dict is custom for two reasons:
What's needed is a dict that knows that some of its entries are This is also very good for failing hasattr(...) calls and Now, about the CreateNewInstances benchmark. It creates three classes I have some solutions for this floating around in my head, which I'll |
Are you withdrawing this in favor of bpo-1568? |
Yes, as well bpo-1700288 (Armin's attribute lookup caching patch ported to |
That's still ambiguous -- do you want any of those to be closed too? |
Sorry - I'll be more clear. I'd love to see 2.6 get attribute lookup |
I'm trying to look at all of them. Having it split into several patches Please communicate with me directly (python at rcn dot com) so I can |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: