Repository navigation
Add locations at recursive methods. - #5
Open
Pavel-Durov wants to merge 3 commits into
Open
Pavel-Durov wants to merge 3 commits into
Pavel-Durov wants to merge 3 commits into
Conversation
As in yklua, an irep now carries a `called` flag, set on frame entry and cleared in cipop.
ltratt
reviewed
Oct 19, 2026
| if (!irep->yk_locs) ((mrb_irep*)irep)->yk_locs = yk_init_loc(mrb, irep); \ | ||
| } \ | ||
| yk_mt_control_point(yk_mt, &((YkLocation*)irep->yk_locs)[(size_t)(yk_pc - irep->iseq)]); \ | ||
| mrb_jit_yk_hook(mrb, irep, yk_pc); \ |
There was a problem hiding this comment.
As before: you cannot rely on inlining. Please put that code inline. Otherwise everything (more-or-less) looks good.
ltratt
reviewed
Oct 19, 2026
Author
|
Moved recursive detection to call sites in 8035563. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As in yklua, each irep now carries a called flag. It is set on frame entry and cleared in cipop.
The recursive benchmarks gain the most -Towers is 5.5x faster, CD 1.9x, Storage 1.7x and Bounce 14%. Queens, Mandelbrot, DeltaBlue, List and Json gain only 2–5%, and Sieve, Havlak and Permute unchanged.
Queens is recursive yet gains only 4.65%, and I plan to investigate why as a follow-up.
AWFY Benchmarks comparing with ykmruby/master
haste.zip