lua-users home
lua-l archive

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


On Mon, Mar 13, 2017 at 9:52 AM, Thomas Jericke <tjericke@indel.ch> wrote:
For code that is only executed once (or few times), the time tom optimize might be larger than the benefit from optimizing. If you want to optimize Lua code, it should be an optional flag (like -o? in GCC). But than again, the common argument is, if you want to be really fast, you may just use C.

Yes, bytecode optimization will increase time of "load()" function execution.
"load" function itself usually never used in performance-sensitive parts of code.
But the result returned by load() function may be a subject to performance requirements.