|
On Ср 22.02.17 22:13, Dibyendu Majumdar wrote:
A natural follow on question is can the interpreter be made faster
without resorting to hand-written assembly code or other esoteric
optimisations?
Big Yes. When I switched from plain Lua to LuaJIT I was very happy with the speedup. I didn't run the numbers, but it felt like 10x increase in speed. Then I found out that mobdebug.lua was disabling JIT, so all this speedup was from faster interpreter. Speedup from enabling JIT wasn't nearly as big.
This speedup probably comes from faster table access, but I don't know how LuaJIT achieves it.