| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
||
| def test_call_kw(self): | ||
| def func(a): | ||
| return 42 * a |
There was a problem hiding this comment.
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.
|
It's not optimizing through the bound method because we're missing _EXPAND_METHOD_KW in the JIT. I think you can just copy whatever _EXPAND_METHOD has and place it under there. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks! This should be a pretty decent win.
Sorry, something went wrong.
…he JIT (pythonGH-148466) Co-authored-by: Ken Jin <kenjin4096@gmail.com>
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.