Add Support for Luajit #2363
Replies: 4 comments
-
|
Bump? |
Beta Was this translation helpful? Give feedback.
-
|
would love to see this become a reality =) |
Beta Was this translation helpful? Give feedback.
-
|
i don't think that will ever happen, but bump 🙏 |
Beta Was this translation helpful? Give feedback.
-
|
LuaJIT nerd here, you misunderstand how things works. Here your code is jit compiled. Even if the luajit interpreter is 4 times faster here you're using the jit compiler which will not jit compile your code because of all of the LUA C API call inside your loops. LuaJIT supports stitching which kinds helps but still, you would need to use FFI to 100% use luajit performance |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i have seen that Fivem have support for lua 5.3 and 5.4, the majority of the scripts of fivem are doned with lua. And some servers lacks performance, so why don't implement Luajit that is much faster than lua5.4?
This is just an example code:
Lua54 Result:
LuaJit Result:
This test don't show the real case difference but its a showcase to see the performance difference between the two options. And i think if this is implement most of the servers and clients will notice it.
Beta Was this translation helpful? Give feedback.
All reactions