Change what we do and don't outline#133
Merged
vext01 merged 2 commits intoykjit:mainfrom Dec 15, 2025
Merged
Conversation
In ykjit#131 I added `yk_outline` to nearly every GC function and got an 8-9% speedup. Much has changed since then in how we optimise programs, so I decided to revisit this. First, as I noted in ykjit#131, I was sloppy and added `yk_outline` to functions with loops in (i.e. those that could never be inlined). Those are easily removed. Indeed, _most_ of the static functions in this file can't be reached (even indirectly) from the outside world, so most of those can also have `yk_outline` removed. Really what we have to think about are the `luaC_*` functions. A quick bit of experimentation suggests that, at least for now, they're best left outlined. Overall, this commit has no meaningful performance change that I can measure.
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.
This PR in a sense undoes some of the crudeness from #131 in f00740d and then marks a couple of functions we definitely don't want outlined. Overall with jitc_yk this slightly speeds up ~four benchmarks and leaves the rest untouched:
The
hashidsandstoragenumbers are repeatable. I'm less convinced by the others.