Skip to content

Expose functionality of lua_dump #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alvinhochun opened this issue Jun 1, 2020 · 1 comment
Closed

Expose functionality of lua_dump #178

alvinhochun opened this issue Jun 1, 2020 · 1 comment
Milestone

Comments

@alvinhochun
Copy link

From what I gathered, lua_dump allows for dumping the compiled bytecode of scripts which in theory can be loaded faster than the script in text form.

@jugglerchris jugglerchris added this to the Version 1.0 milestone Jul 11, 2021
@jugglerchris
Copy link
Collaborator

This has been add as Function::dump() as part of #236. These can be loaded using the (unsafe) Chunk::into_function_allow_binary(). Another option is to use Lua::unsafe_new_with_flags() to create the Lua state, which lets you disable the wrappers around the Lua load family of functions which normally disable bytecode loading.

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

No branches or pull requests

2 participants