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
enable luajit on the docker image #10414
Conversation
I am confused, we can already use LuaJIT so why is the increase in Lua speed stated as a benefit of this PR? |
This is solely for the docker image we provide (see here), it doesn't change anything about the build process or what is/isn't required. |
Are you sure we use it on build ? you just install package, we don't have options to pass to cmake ? |
It's auto-detected:
|
As far as I know, there are bugfixes in the latest luajit which are not included in the latest stable release, for example: LuaJIT/LuaJIT@45a7e50 |
It installs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Overview
This PR adds
luajit
to the "stock" minetest docker image.It will allow faster lua execution through the
luajit
library.There are 2 stages in the
Dockerfile
: build and package.In the build stage the
luajit-dev
package is pulled in with all the libraries and headers.In the package stage only the
luajit
package with the previously linked libraries is included.The size-increase is around 800 kb.
Stats
In my tests i had a 20x to 30x decrease in processing time for lua mapgens with jit enabled.
State
This PR is Ready for Review.
How to test