3 ms·
Seem bizarre to push being only four times faster than straight lua when it is compiled to native instructions. Lua is 50x-100x slower than a native binary.
by BubRoss 8y ago
Seem bizarre to push being only four times faster than straight lua when it is compiled to native instructions. Lua is 50x-100x slower than a native binary.
- enriquto 8y agoYes, at first I thought it was comparing against luajit, which is indeed blazingly fast. But for a compiled language just to be 4x faster than lua, I fail to see the point (of emphasizing it speed, not of the language itself).
- palaiologos 8y agoI have tested it myself and it's nearly as fast as luajit, but I didn't publish results. It doesn't mean you can't try it yourself!
- otabdeveloper2 8y agoWe actually compared stock lua to luajit in production, for something with high load and serious performance requirements. The difference turned out to be no big deal, less than x2 in speed. The real performance killer seems to be garbage collection and chasing pointers due to inefficient data structures. Luajit doesn't help much here. In the end we went with stock lua because it doesn't have the 1 gigabyte memory limit, and so can use a much larger thread pool.