-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support recursion in JIT-ed functions #5473
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
32037f5
to
5aa22f9
Compare
clippy errors are unrelated & mostly because a new rust stable shipped yesterday: https://releases.rs/docs/1.84.0/ |
@coolreader18 is working for it on #5472 |
Could you rebase it to make clippy tests pass? |
JIT implementation today is experimental & doesn't support calling out (globals, other functions etc.) This commit adds support for recursion
9063218
to
0468f0e
Compare
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
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.
Thank you so much! The benchmark is impressive
Welcome! Yes, performed much better than I anticipated |
Support recursion in JIT-ed functions
JIT implementation today is experimental & doesn't support calling out (globals, other functions etc.). This PR adds support for recursion.
Summary of Changes:
On a "non-scientific" benchmark, JIT-ed function appears to be faster than rustpython/intereprted (expected) and cpython 3.13.1

Source of fib.py: