-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
GH-133231: Add JIT utilities in sys._jit
#133233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quick doc-only review:
.. envvar:: PYTHON_JIT | ||
|
||
On builds where experimental just-in-time compilation is available, this | ||
variable can force the JIT to be disabled (``0``) or enabled (``1``) at | ||
interpreter startup. | ||
|
||
.. versionadded:: 3.13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should backport this, should it be split out into a different PR for ease?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just backport it separately, since I need the ref for this PR's changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth using miss-islington for the backport here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll just do it manually in a bit.
I just realized that my approach for |
Okay, reworked to support tail-calling. |
@markshannon, let me know what you think. The bots won't let us merge features without approving review, but I'd like to get something like this in before the freeze. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
One small suggestion
sys._jit
#133231📚 Documentation preview 📚: https://cpython-previews--133233.org.readthedocs.build/