lua-users home
lua-l archive

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

In message <>, David Given <> writes
To my surprise, running the script through luac makes things *bigger* ---
presumably due to inefficient opcode encoding. Can anyone suggest any other
strategies I could adopt?

Would it be possible for you to identify all the unique words in the file and encode then using your own scheme and then reconstruct the script using this at run time? Doesn't sound much different to compressing the script using gzip and then decompressing prior to execution.

Stephen Kellett
Object Media Limited
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting