Skip to content

Add a Location to every function - #28

Merged
ltratt merged 2 commits into
ykjit:masterfrom
ltratt:loc_at_every_func
Aug 13, 2026
Merged

Add a Location to every function#28
ltratt merged 2 commits into
ykjit:masterfrom
ltratt:loc_at_every_func

Conversation

@ltratt

@ltratt ltratt commented Aug 13, 2026

Copy link
Copy Markdown

I've done a lot of analysis over the past couple of days and the good news is that I know how to allow inlining of Python functions in ykmicropython, but the bad news is that there are some performance edge cases that will take a lot of work to fix in yk. I will get to those one day, but for now, the sensible fix in ykmicropython is to add a Location to every function. Once that's done, our "is it recursive?" check is pointless, and just slows the interpreter down, so off with its head.

ltratt added 2 commits August 13, 2026 10:30
This is a bit icky, but right now yk doesn't support an important
performance edge case (and the fix is sophisticated, and will take
time). This is a reasonable intermediate step to getting better
performance.
@ltratt
ltratt enabled auto-merge August 13, 2026 09:38
@ltratt
ltratt added this pull request to the merge queue Aug 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 13, 2026
@ltratt
ltratt added this pull request to the merge queue Aug 13, 2026
Merged via the queue into ykjit:master with commit 46785f9 Aug 13, 2026
2 checks passed
@ltratt
ltratt deleted the loc_at_every_func branch August 13, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant