Re: Faster 'generic for' for raw table
Luiz Henrique de Figueiredo <[email protected]> Fri, 12 Jun 2026 09:29:12 -0300
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <CABt16q=7tQd5fJxN+d5_2kj_U9+-Pssvnj3fzfRmX2--zCzs4Q@mail.gmail.com> |
> The original lua 5.5 cost 0.97s , and patched version (using lua_next > instead of luaD_call) cost 0.42s . It's almost twice as fast. Add some real work in the loops like calling a function or concatenating strings or creating tables and this difference will probably decrease significantly. -- You received this message because you are subscribed to the Google Groups "lua-l" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/CABt16q%3D7tQd5fJxN%2Bd5_2kj_U9%2B-Pssvnj3fzfRmX2--zCzs4Q%40mail.gmail.com.