GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — gh-131798: optimize through keyword and bound method calls in the JIT by kumaraditya303 · Pull Request #148466 · python/cpython Conversation
|
|
|
||
| def test_call_kw(self): | ||
| def func(a): | ||
| return 42 * a |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We should be checking that we optimize through the trace. So the best way is to put a global (e.g. range) here and check if it gets promoted in the tests below. See for example test_init_resolves_callable which does self.assertNotIn("_LOAD_GLOBAL_BUILTINS", uops). Same for the other test.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It's not optimizing through the bound method because we're missing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This should be a pretty decent win.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…he JIT (pythonGH-148466) Co-authored-by: Ken Jin <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.