Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Generate for loops instead of while loops #23

Open
ghost opened this issue Apr 14, 2018 · 0 comments
Open

Generate for loops instead of while loops #23

ghost opened this issue Apr 14, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 14, 2018

According to my tests, using a for loop instead of a while loop is about 28% faster with Lua and 67% faster with LuaJit. Therefore, emitting for loops wherever possible would be a pretty significant performance win for the generated code, and would lead to slightly smaller code size too.

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

No branches or pull requests

1 participant