Skip to content
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

Type LuaJIT code as much as possible #19

Open
Rerumu opened this issue Jun 28, 2022 · 0 comments
Open

Type LuaJIT code as much as possible #19

Rerumu opened this issue Jun 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Rerumu
Copy link
Owner

Rerumu commented Jun 28, 2022

Right now LuaJIT code suffers a performance penalty because the JIT is not always capable of inferring that operations on i32 are for integers. This causes a lot of f64-oriented native code to be generated that could have been i32 operations.

I don't know of any good ways of passing in strong type hints to the JIT other than just replacing all uses of i32 with the i64 type and truncating results.

@Rerumu Rerumu added the enhancement New feature or request label Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant