-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Minor optimizations in hot codepaths accessing class parameters #893
Conversation
Actually this probably does not take into account dynamically added parameters added using |
Should be fixed now. |
Not showing a huge impact on the benchmarks but those don't cover real usecases yet, which end up calling
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far!
I'm done here for now, those py3.12 test failures seem unrelated. |
The failing test is because of pytest-asyncio. The next release (0.23.3) should fix it. |
I added two simple benchmarks for
|
No reason why the have to call
.objects
to get the list of parameters and also no reason we have check all parameters.