gh-101409: Improve generated clinic code for self type checks#101411
gh-101409: Improve generated clinic code for self type checks#101411erlend-aasland merged 3 commits intopython:mainfrom
Conversation
Store the self type pointer in a local variable.
|
cc. @colorfulappl |
IMHO, this improvement is worth it.
|
That is true; we cannot guarantee that the compiler will eliminate the redundant calls.
I agree with this. Thanks for the review, @colorfulappl; highly appreciated. |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
self_tp may be not a good name. It is not a type of self. Maybe base_type or declared_type or something?
|
|
|
|
Thanks for the reviews, y'all! |
* main: pythonGH-100288: Skip extra work when failing to specialize LOAD_ATTR (pythonGH-101354) pythongh-101409: Improve generated clinic code for self type checks (python#101411) pythongh-98831: rewrite BEFORE_ASYNC_WITH and END_ASYNC_FOR in the instruction definition DSL (python#101458) pythongh-101469: Optimise get_io_state() by using _PyModule_GetState() (pythonGH-101470)
Store the self type pointer in a local variable.