lua-users home
lua-l archive

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


Hi all,

i am using lua for my GUI on an embedded hardware. I have some common
scripts for buttons, sliders etc. Typically a GUI screen is based on
these scripts and some of these scripts are multiple loaded (if i have 5
buttons, the button script is loaded 5 times).

Now i have a problem with the loading/parsing speed of these scripts. In
the first step, i have precompiled the lua scripts, which give me a 2-3x
faster loading. In the next step, i am thinking about avoiding the
multiple loading/parsing of the scripts (e.g. the 5 buttons).

Is it possible to clone a lua state and will that be faster than loading?

Thank you in advance.
Regards Mario