Skip to content

Conversation

ligurio
Copy link
Owner

@ligurio ligurio commented Jul 30, 2025

The patch removes debug hook and testing using bytecode in luaL_loadbuffer_proto_test. Debug hook was added in the commit c772887 ("tests: enable debug hook in luaL_loadbuffer_proto"), the hook slows down execution, breaks JIT compilation in LuaJIT and there were no bugs found with it. Testing with bytecode has been added the commit 0b8c9b8 ("tests: execute bytecode in luaL_loadbuffer_proto_test"), it slows down running each chunk in two times and there were no bugs found by added function.

The patch removes debug hook and testing using bytecode
in luaL_loadbuffer_proto_test. Debug hook was added in the commit
c772887 ("tests: enable debug hook in luaL_loadbuffer_proto"),
the hook slows down execution, breaks JIT compilation in LuaJIT
and there were no bugs found with it. Testing with bytecode has
been added the commit 0b8c9b8 ("tests: execute bytecode in
luaL_loadbuffer_proto_test"), it slows down running each chunk
in two times and there were no bugs found by added function.
Copy link
Collaborator

@Buristan Buristan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, Sergey!
Thanks for the patch!
LGTM!

@Buristan Buristan assigned ligurio and unassigned Buristan Jul 31, 2025
@ligurio ligurio merged commit 51d08cf into master Jul 31, 2025
12 checks passed
@ligurio ligurio deleted the ligurio/gh-xxxx-speedup-luaL_loadbuffer_proto_test branch July 31, 2025 07:16
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.

2 participants