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: JIT: Optimize _CALL_LEN when the length is known by tomasr8 · Pull Request #135260 · python/cpython Conversation
|
| int tuple_length = sym_tuple_length(arg); | ||
| if (tuple_length >= 0) { | ||
| PyObject *temp = PyLong_FromLong(tuple_length); | ||
| if (temp == NULL) { | ||
| goto error; | ||
| } | ||
| if (_Py_IsImmortal(temp)) { | ||
| REPLACE_OP(this_instr, _POP_CALL_ONE_LOAD_CONST_INLINE_BORROW, | ||
| 0, (uintptr_t)temp); | ||
| } | ||
| res = sym_new_const(ctx, temp); | ||
| Py_DECREF(temp); | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is basically copied from the recent _GET_LEN optimization
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
Looks good! I'll leave this for you to merge yourself. ;)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm planning to merge this once the tests pass :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…thon#135260) * Add news entry * Optimize _CALL_LEN * Simplify tests
…thon#135260) * Add news entry * Optimize _CALL_LEN * Simplify tests
…thon#135260) * Add news entry * Optimize _CALL_LEN * Simplify tests
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.