lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


i have 3 files x.lua, y.lua and main.lua. These files doing some mathematics operations (increment and decrement). If i use command for run:

lua main.lua - it is very fast

but when i delete all requires from main.lua and use commands for compiling:

luac -o main.out -s x.lua y.lua main.lua

and command for run:

lua main.out - this is very slow

please can you help me why second example is slow than first and how to remove this slowdown? Or how to create bytecode from multiple files without losing speed

Thank you
Best regards
Michal Lisican