Skip to content

Promote constant strings. - #153

Merged
ltratt merged 1 commit into
ykjit:mainfrom
ltratt:promote_const_strs
Jul 21, 2026
Merged

Promote constant strings.#153
ltratt merged 1 commit into
ykjit:mainfrom
ltratt:promote_const_strs

Conversation

@ltratt

@ltratt ltratt commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Several Lua bytecodes take constant TStrings: because the VM's GC is non-moving, this means these have constant addresses. This commit thus promotes these values when tracing, giving a small but notable performance boost. I cannot claim credit for this idea, which came from Codex.

Several Lua bytecodes take constant `TString`s: because the VM's GC is
non-moving, this means these have constant addresses. This commit thus
promotes these values when tracing, giving a small but notable
performance boost. I cannot claim credit for this idea, which came from
Codex.
@ltratt
ltratt enabled auto-merge July 21, 2026 16:56
@ltratt
ltratt added this pull request to the merge queue Jul 21, 2026
Merged via the queue into ykjit:main with commit 56ede4b Jul 21, 2026
2 checks passed
@ltratt
ltratt deleted the promote_const_strs branch July 21, 2026 17:50
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