Add Support for Luajit #2363
GPeaky
started this conversation in
Engineering Discussion
Replies: 4 comments
|
Bump? |
0 replies
|
would love to see this become a reality =) |
0 replies
|
i don't think that will ever happen, but bump 🙏 |
0 replies
|
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
All reactions