lua-users home
lua-l archive

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


>I've built luac into my game engine so that when it detects that a 
>lua file has been changed it recompiles it to bytecode and saves it.
>Before that it was just laoding the lua source each time it was run.
>
>Now when everything is bytecompiled and I run the game it actually
>loads slower! Which kinda defeats the point of bytecode IMO.

Loading the scripts should be faster. Have you measure just that?
Perhaps the extra time is being spen checking whether the file has been
changed?

If not, could you please send me a sample script?
Thanks.
--lhf