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 — bpo-46841: Use inline caching for calls by brandtbucher · Pull Request #31709 · python/cpython Conversation
|
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit 2021895 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit 2021895 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
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.
Excellent.
A couple comments, but nothing to block merging.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ); | ||
| } | ||
| /* Maximum size of code to quicken, in code units. */ | ||
| #define MAX_SIZE_TO_QUICKEN 10000 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is this just to get the unpack sequence benchmark to work again, or something else?
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.
Nope, just for unpack_sequence.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| PyObject *isinstance; | ||
| PyObject *len; | ||
| PyObject *list_append; | ||
| }; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think the existence of PyList_Type as part of the API means that list.append must be per-process unique.
In other words, list_append could be static.
I'm happy to leave it as is for now, though. We should look to make the whole struct static, although the mutability of builtin functions makes that tricky for isinstance and len.
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.
I believe each interpreter has its own builtins module (check out _PyBuiltin_Init), so making this static could be tricky. As you said, though: probably worth looking into in the future.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.