Enable jit

This commit is contained in:
Filip Tibell 2023-08-05 17:53:32 -05:00
parent 55a2338a3e
commit fea97972a2
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -77,7 +77,11 @@ urlencoding = "2.1"
### RUNTIME ### RUNTIME
mlua = { version = "0.9.0-beta.3", features = ["luau", "serialize"] } mlua = { version = "0.9.0-beta.3", features = [
"luau",
"luau-jit",
"serialize",
] }
tokio = { version = "1.24", features = ["full"] } tokio = { version = "1.24", features = ["full"] }
### SERDE ### SERDE

View file

@ -78,6 +78,7 @@ pub fn create() -> LuaResult<&'static Lua> {
let lua = Lua::new().into_static(); let lua = Lua::new().into_static();
// Enable jit and set global compiler options // Enable jit and set global compiler options
lua.enable_jit(true);
lua.set_compiler( lua.set_compiler(
LuaCompiler::default() LuaCompiler::default()
.set_coverage_level(0) .set_coverage_level(0)