lua-users home
lua-l archive

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


> The traditional thing to do with C in this case is to run the source
> through a cruncher; this will strip out comments and whitespace, and
> the really good ones will rename all your identifiers to be as short
> as possible.

My ltokens library has a lstrip tool which strips comments and whitespace,
but does not do renaming.

See also
	http://lua-users.org/lists/lua-l/2005-02/msg00357.html
	http://lua-users.org/lists/lua-l/2005-02/msg00395.html
	http://lua-users.org/lists/lua-l/2005-02/msg00396.html

> To my surprise, running the script through luac makes things *bigger* --- 
> presumably due to inefficient opcode encoding.

Try luac -s.

--lhf