lua-users home
lua-l archive

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


SS> is how to store all these scripts so that they take as little space as
SS> possible?

If you want to avoid compression libraries (which would be my first
choice for such a problem...), then maybe something like the basic
compressors in the old days did might be appropriate: reduce every
symbol to 1 character (or as few as you can afford). You can also do
this with the builtin functions and tables. Then have a library ready
that defines these short symbols for the builtin functions, and load
that before the script. You obviously need some program to compress
your scripts to this format. Together with whitespace compression and
comment removal this should result in a pretty good compression ratio.

Gunnar