| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
🤖 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.
|
🤖 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 a problem hiding this comment.
Excellent.
A couple comments, but nothing to block merging.
Sorry, something went wrong.
| ); | ||
| } | ||
| /* Maximum size of code to quicken, in code units. */ | ||
| #define MAX_SIZE_TO_QUICKEN 10000 |
There was a problem hiding this comment.
Is this just to get the unpack sequence benchmark to work again, or something else?
Sorry, something went wrong.
There was a problem hiding this comment.
Nope, just for unpack_sequence.
Sorry, something went wrong.
| PyObject *isinstance; | ||
| PyObject *len; | ||
| PyObject *list_append; | ||
| }; |
There was a problem hiding this comment.
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 a problem hiding this comment.
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.
| Back | FazBrowse Home | New Git URL |
Also:
Next steps tracked at faster-cpython/ideas#310.
https://bugs.python.org/issue46841