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

Move allocation for string literals out of loops #37

Open
mascarenhas opened this issue Oct 22, 2017 · 0 comments
Open

Move allocation for string literals out of loops #37

mascarenhas opened this issue Oct 22, 2017 · 0 comments

Comments

@mascarenhas
Copy link
Member

Right now the code generation for a string literal just calls luaS_new in place. We cannot rely on the C compiler moving this allocation outside of a loop, as it has no way to know that luaS_new is constant, so the Titan compiler is the one that has to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant