lua-users home
lua-l archive

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


Roger D. Vargas wrote:
>What is executed faster, a precompiled script or a not precompiled one?

>From the luac man page:

   The main advantages of precompiling chunks are: faster loading,
   protecting source code from user changes, and off-line syntax checking.

   Pre-compiling does not imply faster execution because in Lua chunks
   are always compiled into bytecodes before being executed. luac simply
   allows those bytecodes to be saved in a file for later execution.

--lhf