Skip to content

Remove proto_version. - #152

Closed
ltratt wants to merge 1 commit into
ykjit:mainfrom
ltratt:remove_proto_version
Closed

Remove proto_version.#152
ltratt wants to merge 1 commit into
ykjit:mainfrom
ltratt:remove_proto_version

Conversation

@ltratt

@ltratt ltratt commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This dates from a time when we were seeing random crashes in yklua and I reached for this as a hack: the crashes went away, but I think that was not because proto_version was the right fix. Indeed, I'm now fairly confident that proto_version is by unnecessary: by definition, if we create a new Proto we get a new YkLocation so proto_version can't do anything. This does lead to a small speedup across several Lua benchmarks.

This dates from a time when we were seeing random crashes in yklua and I
reached for this as a hack: the crashes went away, but I think that was
not because `proto_version` was the right fix. Indeed, I'm now fairly
confident that `proto_version` is by unnecessary: by definition, if we
create a new `Proto` we get a new `YkLocation` so `proto_version` can't
do anything. This does lead to a small speedup across several Lua
benchmarks.
@ltratt
ltratt enabled auto-merge July 21, 2026 15:26
@ltratt
ltratt added this pull request to the merge queue Jul 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 21, 2026
@ltratt ltratt closed this Jul 21, 2026
@ltratt
ltratt deleted the remove_proto_version branch July 21, 2026 15:52
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