Lua high performance examples

Hello. I am not a professional programmer. I am just an enthusiast. So, sometimes my Lua code works not smoothly especially in HTML5.
So, which is faster (more smooth) Lua or Teal?
Google and Youtube give about Lua significantly less information than about other programming languages.
If you know any web-resource about correct high-performance style of coding in Lua, give me links, please!

My understanding is that Teal compiles into Lua, so there should be no performance difference. As for improving the performance of Lua code, this article / book chapter from the Lua developers is a good place to start: https://www.lua.org/gems/sample.pdf

2 Likes

I also agree that it’s unlikely that you’ll derive performance benefits by switching language, it’s almost certainly down to your coding practices.

Here is a good thread with some neat tricks:

Generally speaking though I think a lot of benefit will come from practice. Start using the profiler if you aren’t already!

2 Likes

HTML5 uses Lua 5.1 interpreter, not LuaJIT. That’s the reason.

3 Likes